aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-16 00:41:56 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-16 00:41:56 +0000
commit2e420db19cab6bf7849db02bf6b99e6bc58c40df (patch)
treec76662b3c423b16e6b63aec1079c2b414a752dc0 /src/ls.c
parent5ea8e2d65b18f764ca460ac25f1213d2498ed2f8 (diff)
downloadmpd-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 '')
-rw-r--r--src/ls.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index 556b68d79..6b9b46ed1 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -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;
}
}