forked from len0rd/rockbox
consolidate the 3 file_exists() functions into one; use the version that explicitly uses dircache; give dir_exists() the same treatment for consistency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15742 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a2ad8537af
commit
d87b037efe
10 changed files with 50 additions and 65 deletions
|
|
@ -3807,12 +3807,8 @@ static bool check_dir(const char *dirname)
|
|||
|
||||
/* check for a database.ignore file */
|
||||
snprintf(newpath, MAX_PATH, "%s/database.ignore", dirname);
|
||||
len = open(newpath, O_RDONLY);
|
||||
if (len >= 0)
|
||||
{
|
||||
close(len);
|
||||
if(file_exists(newpath))
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Recursively scan the dir. */
|
||||
#ifdef __PCTOOL__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue