diff options
| author | Robert Kukla <roolku@rockbox.org> | 2007-11-21 21:28:27 +0000 |
|---|---|---|
| committer | Robert Kukla <roolku@rockbox.org> | 2007-11-21 21:28:27 +0000 |
| commit | d87b037efe7d001902c0cde992e1633ff9f70061 (patch) | |
| tree | ddea298e51d73443aad0d31fca7d59311444efab /apps/tagcache.c | |
| parent | a2ad8537af659972b2e859c99c0ff75e374b73f9 (diff) | |
| download | rockbox-d87b037efe7d001902c0cde992e1633ff9f70061.zip rockbox-d87b037efe7d001902c0cde992e1633ff9f70061.tar.gz rockbox-d87b037efe7d001902c0cde992e1633ff9f70061.tar.bz2 rockbox-d87b037efe7d001902c0cde992e1633ff9f70061.tar.xz | |
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
Diffstat (limited to 'apps/tagcache.c')
| -rw-r--r-- | apps/tagcache.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 91220a3..2882aa8 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -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__ |