From c31ffae440b6e5b3ef28d584cd2a8f8b0c471c4e Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 21 Nov 2007 13:37:45 +0000 Subject: 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 --- apps/tagcache.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps') 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) -- cgit v1.1