summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 7f12bab849..dea20393ff 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -3420,6 +3420,10 @@ static bool check_deleted_files(void)
3420 return false; 3420 return false;
3421 } 3421 }
3422 3422
3423 /* Check if the file has already deleted from the db. */
3424 if (*buf == '\0')
3425 continue;
3426
3423 /* Now check if the file exists. */ 3427 /* Now check if the file exists. */
3424 testfd = open(buf, O_RDONLY); 3428 testfd = open(buf, O_RDONLY);
3425 if (testfd < 0) 3429 if (testfd < 0)
@@ -3859,6 +3863,14 @@ void tagcache_init(void)
3859#endif 3863#endif
3860} 3864}
3861 3865
3866#ifdef __PCTOOL__
3867void tagcache_reverse_scan(void)
3868{
3869 logf("Checking for deleted files");
3870 check_deleted_files();
3871}
3872#endif
3873
3862bool tagcache_is_initialized(void) 3874bool tagcache_is_initialized(void)
3863{ 3875{
3864 return tc_stat.initialized; 3876 return tc_stat.initialized;