FileCommands: skip special files completely

Previously, MPD printed the time stamp without printing the file
name.  That made no sense.
This commit is contained in:
Max Kellermann 2015-02-28 20:58:48 +01:00
parent 2d06a8e880
commit 00583bc4a8
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}