From b343793b10250ecb290d0d34722770b6506ff679 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Mon, 20 Aug 2007 14:14:02 +0000 Subject: just testing git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6769 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/ls.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ls.c') 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; } -- cgit v1.2.3