Difference between revisions of "Truxton media update paths"
Jump to navigation
Jump to search
(Created page with "This will analyze the media and update the <code>[FullPathID]</code> column of the <code><nowiki>[</nowiki>File<nowiki>]</nowiki></code> table. =Syntax= <sourc...") |
|||
| Line 1: | Line 1: | ||
This will analyze the media and update the <code>[FullPathID]</code> column of the <code><nowiki>[</nowiki>[[File Table|File]]<nowiki>]</nowiki></code> table. | This will analyze the media and update the <code>[FullPathID]</code> column of the <code><nowiki>[</nowiki>[[File Table|File]]<nowiki>]</nowiki></code> table. | ||
| + | You would use this API if you have added files to a media that has finished loading. | ||
=Syntax= | =Syntax= | ||
Latest revision as of 08:40, 28 January 2024
This will analyze the media and update the [FullPathID] column of the [File] table.
You would use this API if you have added files to a media that has finished loading.
Syntax
int truxton_media_update_paths( uint64_t media_handle );
Parameters
media_handle
The handle created by the truxton_media_open_id or truxton_media_create call.
Return value
A non-zero value on success, zero on failure.
Sample
void update_if_needed( uint64_t media, uint64_t old_file_count, uint64_t new_file_count )
{
if ( old_file_count >= new_file_count )
{
return;
}
printf( "Files were added, updating full paths now...\n" );
truxton_media_update_paths( media );
}