summaryrefslogtreecommitdiff
path: root/src/directory.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-14 03:04:49 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-14 03:04:49 +0000
commitba1d3302e2a96d20a77f70b1dd263b2a344432ee (patch)
tree1f27e8966d2a3e5991763dc27f516cd88014c00a /src/directory.c
parent8fa2084703096e4104c4e7422366a2e10e404891 (diff)
silly shank, use functions you already have\!
git-svn-id: https://svn.musicpd.org/mpd/trunk@744 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/directory.c')
-rw-r--r--src/directory.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/directory.c b/src/directory.c
index fd82f3fb1..671b6b9d4 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -384,13 +384,12 @@ void updatePath(char * utf8path) {
}
}
/* apth not found in the db, see if it actually exists on the fs */
- else if((dir = opendir(utf8path))) {
- closedir(dir);
+ else if(isDir(utf8path,NULL)) {
/* create parent/get parent directory */
/* create new directory and add to parent */
/* explore direcotry */
}
- else if((song = newSong(utf8path))) {
+ else if((isMusic(utf8path,NULL))) {
/* create parent/get parent directory */
/* add song to directory */
}