summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
authorRobert Kukla <roolku@rockbox.org>2007-11-21 21:28:27 +0000
committerRobert Kukla <roolku@rockbox.org>2007-11-21 21:28:27 +0000
commitd87b037efe7d001902c0cde992e1633ff9f70061 (patch)
treeddea298e51d73443aad0d31fca7d59311444efab /apps/tagcache.c
parenta2ad8537af659972b2e859c99c0ff75e374b73f9 (diff)
downloadrockbox-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.c6
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__