From ba1d3302e2a96d20a77f70b1dd263b2a344432ee Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Wed, 14 Apr 2004 03:04:49 +0000 Subject: silly shank, use functions you already have\! git-svn-id: https://svn.musicpd.org/mpd/trunk@744 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/directory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 */ } -- cgit v1.2.3