<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_file_path_exists</id>
	<title>Truxton file path exists - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_file_path_exists"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_file_path_exists&amp;action=history"/>
	<updated>2026-09-09T15:05:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_file_path_exists&amp;diff=10752&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;Tests to see if a file with a given path exists in Truxton.  =Syntax= &lt;source lang=&quot;C&quot;&gt; int truxton_file_path_exists( uint64_t truxton_handle, char const* media_id_guid, char...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_file_path_exists&amp;diff=10752&amp;oldid=prev"/>
		<updated>2026-02-11T22:13:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Tests to see if a file with a given path exists in Truxton.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; int truxton_file_path_exists( uint64_t truxton_handle, char const* media_id_guid, char...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Tests to see if a file with a given path exists in Truxton.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
int truxton_file_path_exists( uint64_t truxton_handle, char const* media_id_guid, char const * file_path);&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;truxton_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle created by the [[truxton_create]].&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;media_id_guid&amp;lt;/code&amp;gt;==&lt;br /&gt;
The string representation of a globally unique identifier of the media that contains this path.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;file_path&amp;lt;/code&amp;gt;==&lt;br /&gt;
The exact path to the file.&lt;br /&gt;
&lt;br /&gt;
=Return value=&lt;br /&gt;
It will return 1 if the file exists, 0 if it does not exist.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
void print_it( uint64_t truxton )&lt;br /&gt;
{&lt;br /&gt;
   uint64_t exists = truxton_file_path_exists( truxton, &amp;quot;31bb46e2-b530-577a-ac00-6901ec2678fe&amp;quot;, &amp;quot;Root\\463573448-Flynn-Calls-1.pdf\\Test.txt&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
   if ( exists != 0 )&lt;br /&gt;
   {&lt;br /&gt;
      printf( &amp;quot;It exists!\n&amp;quot; );&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   printf( &amp;quot;It does not exists.\n&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>