silly shank, use functions you already have\!

git-svn-id: https://svn.musicpd.org/mpd/trunk@744 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-04-14 03:04:49 +00:00
parent 8fa2084703
commit ba1d3302e2

View File

@ -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 */
} }