Truxton file open path
Jump to navigation
Jump to search
This retrieves a file from Truxton by its path.
Contents
Syntax
uint64_t truxton_file_open_path( uint64_t truxton_handle, char const * media_id, char const * file_path );
Parameters
truxton_handle
The handle created by the truxton_create call.
media_id
The string representation of the globally unique identifier of the media containing the desired file.
file_path
The path to the desired file.
Return value
A handle to a read-only file in Truxton.
Sample
int check_it( uint64_t truxton )
{
char const * full_path = "Root - 000201011\Media\Folder\Setup.exe\1.CAB\Lastrec.log";
char const * media_id = "34c728cf-69bf-6a8a-197d-4b47492c932c";
uint64_t file = truxton_file_open_path( truxton, media_id, full_path );
if ( file == 0 )
{
return( 0 );
}
truxton_file_close( file );
truxton_file_free( file );
return( 1 )
}