From 00583bc4a8357cf43930151650dc058225675403 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 28 Feb 2015 20:58:48 +0100 Subject: FileCommands: skip special files completely Previously, MPD printed the time stamp without printing the file name. That made no sense. --- src/command/FileCommands.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/command/FileCommands.cxx b/src/command/FileCommands.cxx index 1e0f9c585..f1cb72c99 100644 --- a/src/command/FileCommands.cxx +++ b/src/command/FileCommands.cxx @@ -111,6 +111,8 @@ handle_listfiles_local(Client &client, const char *path_utf8) } else if (S_ISDIR(st.st_mode)) client_printf(client, "directory: %s\n", name_utf8.c_str()); + else + continue; time_print(client, "Last-Modified", st.st_mtime); } -- cgit v1.2.3