summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-11-21 13:37:45 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-11-21 13:37:45 +0000
commitc31ffae440b6e5b3ef28d584cd2a8f8b0c471c4e (patch)
treef0ddf00b0c30cc402ba509abeb0d2d712253706c /apps
parent2ed41f90201f1dd69e131837d051c6d41ac53721 (diff)
downloadrockbox-c31ffae440b6e5b3ef28d584cd2a8f8b0c471c4e.zip
rockbox-c31ffae440b6e5b3ef28d584cd2a8f8b0c471c4e.tar.gz
rockbox-c31ffae440b6e5b3ef28d584cd2a8f8b0c471c4e.tar.bz2
rockbox-c31ffae440b6e5b3ef28d584cd2a8f8b0c471c4e.tar.xz
FS#5690 - folders with a file named database.ignore will be skipped by the database when it rebuilds, (this includes any subdirs in that fodler)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15738 a1c6a512-1295-4272-9138-f99709370657
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)