aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2007-08-20 14:14:02 +0000
committerQball Cow <qball@qballcow.nl>2007-08-20 14:14:02 +0000
commitb343793b10250ecb290d0d34722770b6506ff679 (patch)
tree609738996c5a34bb8050ce1b1d6da7b603bea99a /src
parent73e98c387134d44aeab32cc9361acf8e5dce8944 (diff)
downloadmpd-b343793b10250ecb290d0d34722770b6506ff679.tar.gz
mpd-b343793b10250ecb290d0d34722770b6506ff679.tar.xz
mpd-b343793b10250ecb290d0d34722770b6506ff679.zip
just testing
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6769 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/ls.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index 0b3f7f354..e62ed046b 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -153,6 +153,7 @@ int lsPlaylists(int fd, char *utf8path)
if (list) {
int i;
+ struct stat data;
sortList(list);
dup = xmalloc(strlen(utf8path) + 2);
@@ -166,8 +167,9 @@ int lsPlaylists(int fd, char *utf8path)
node = list->firstNode;
while (node != NULL) {
if (!strchr(node->key, '\n')) {
- fdprintf(fd, "playlist: %s%s\n", dup,
- node->key);
+ myStat(node->key, &data);
+ fdprintf(fd, "playlist: %s%s\n", dup, node->key);
+ fdprintf(fd, "mtime: %li\n", data.st_mtime);
}
node = node->nextNode;
}