diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-04-16 00:41:56 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-04-16 00:41:56 +0000 |
commit | 2e420db19cab6bf7849db02bf6b99e6bc58c40df (patch) | |
tree | c76662b3c423b16e6b63aec1079c2b414a752dc0 /src/ls.c | |
parent | 5ea8e2d65b18f764ca460ac25f1213d2498ed2f8 (diff) | |
download | mpd-2e420db19cab6bf7849db02bf6b99e6bc58c40df.tar.gz mpd-2e420db19cab6bf7849db02bf6b99e6bc58c40df.tar.xz mpd-2e420db19cab6bf7849db02bf6b99e6bc58c40df.zip |
remove directory mtime from db!
also, only reReadDB and write DB on update if something was actually updated
git-svn-id: https://svn.musicpd.org/mpd/trunk@780 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -179,12 +179,11 @@ int hasMp3Suffix(char * utf8file) { return hasSuffix(utf8file,"mp3"); } -int isDir(char * utf8name, time_t * mtime) { +int isDir(char * utf8name) { struct stat st; if(stat(rmp2amp(utf8ToFsCharset(utf8name)),&st)==0) { if(S_ISDIR(st.st_mode)) { - if(mtime) *mtime = st.st_mtime; return 1; } } |