aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 */
}