Commit ba1d3302 authored by Warren Dukes's avatar Warren Dukes

silly shank, use functions you already have\!

git-svn-id: https://svn.musicpd.org/mpd/trunk@744 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 8fa20847
...@@ -384,13 +384,12 @@ void updatePath(char * utf8path) { ...@@ -384,13 +384,12 @@ void updatePath(char * utf8path) {
} }
} }
/* apth not found in the db, see if it actually exists on the fs */ /* apth not found in the db, see if it actually exists on the fs */
else if((dir = opendir(utf8path))) { else if(isDir(utf8path,NULL)) {
closedir(dir);
/* create parent/get parent directory */ /* create parent/get parent directory */
/* create new directory and add to parent */ /* create new directory and add to parent */
/* explore direcotry */ /* explore direcotry */
} }
else if((song = newSong(utf8path))) { else if((isMusic(utf8path,NULL))) {
/* create parent/get parent directory */ /* create parent/get parent directory */
/* add song to directory */ /* add song to directory */
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment