summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/tagcache.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 4ddf1d2..91220a3 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -3796,6 +3796,7 @@ static bool check_dir(const char *dirname)
DIR *dir;
int len;
int success = false;
+ char newpath[MAX_PATH];
dir = opendir(dirname);
if (!dir)
@@ -3804,6 +3805,15 @@ static bool check_dir(const char *dirname)
return false;
}
+ /* check for a database.ignore file */
+ snprintf(newpath, MAX_PATH, "%s/database.ignore", dirname);
+ len = open(newpath, O_RDONLY);
+ if (len >= 0)
+ {
+ close(len);
+ return false;
+ }
+
/* Recursively scan the dir. */
#ifdef __PCTOOL__
while (1)