<?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_media_update_cache_file_counts</id>
	<title>Truxton media update cache file counts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_media_update_cache_file_counts"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_media_update_cache_file_counts&amp;action=history"/>
	<updated>2026-09-09T15:25:14Z</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_media_update_cache_file_counts&amp;diff=7074&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This method analyzes the media and counts the number of files in each file group. These counts are then saved to the database so the Analyst Desktop can show them to the user....&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_media_update_cache_file_counts&amp;diff=7074&amp;oldid=prev"/>
		<updated>2024-01-28T12:44:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This method analyzes the media and counts the number of files in each file group. These counts are then saved to the database so the Analyst Desktop can show them to the user....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This method analyzes the media and counts the number of files in each file group.&lt;br /&gt;
These counts are then saved to the database so the Analyst Desktop can show them to the user.&lt;br /&gt;
You would use this API if you have added files to a media that has finished loading.&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_media_update_cache_file_counts( uint64_t media_handle );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;media_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle created by the [[truxton_media_open_id]] or [[truxton_media_create]] call.&lt;br /&gt;
&lt;br /&gt;
=Return value=&lt;br /&gt;
A non-zero value on success, zero on failure.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;10&amp;quot;&amp;gt;&lt;br /&gt;
void update_if_needed( uint64_t media, uint64_t old_file_count, uint64_t new_file_count )&lt;br /&gt;
{&lt;br /&gt;
   if ( old_file_count &amp;gt;= new_file_count )&lt;br /&gt;
   {&lt;br /&gt;
      return;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   printf( &amp;quot;Files were added, caching file counts now...\n&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
   truxton_media_update_cache_file_counts( media );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>