diff options
author | Max Kellermann <max@duempel.org> | 2015-02-28 20:58:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-02-28 23:00:26 +0100 |
commit | 00583bc4a8357cf43930151650dc058225675403 (patch) | |
tree | 7ff3fe52e2974e11244d5c050458b6ef7d78b9ed /src/command | |
parent | 2d06a8e8804b1db64c7564532362eecdf7ad81d3 (diff) | |
download | mpd-00583bc4a8357cf43930151650dc058225675403.tar.gz mpd-00583bc4a8357cf43930151650dc058225675403.tar.xz mpd-00583bc4a8357cf43930151650dc058225675403.zip |
FileCommands: skip special files completely
Previously, MPD printed the time stamp without printing the file
name. That made no sense.
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/FileCommands.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |