mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
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
This commit is contained in:
parent
2ed41f9020
commit
c31ffae440
2 changed files with 13 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -186,7 +186,9 @@ sub buildzip {
|
|||
# always disable fonts on non-bitmap targets
|
||||
$fonts = 0;
|
||||
}
|
||||
|
||||
# create the file so the database does not try indexing a folder
|
||||
`touch .rockbox/database.ignore`;
|
||||
|
||||
if($fonts) {
|
||||
mkdir ".rockbox/fonts", 0777;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue