aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 4923ee5d5..7d1e2f306 100644
--- a/src/command.c
+++ b/src/command.c
@@ -559,15 +559,18 @@ static int handleLsInfo(int fd, mpd_unused int *permission,
int argc, char *argv[])
{
const char *path = "";
+ const struct directory *directory;
if (argc == 2)
path = argv[1];
- if (printDirectoryInfo(fd, path) < 0) {
+ if (!(directory = getDirectory(path))) {
commandError(fd, ACK_ERROR_NO_EXIST, "directory not found");
return -1;
}
+ directory_print(fd, directory);
+
if (isRootDirectory(path))
return lsPlaylists(fd, path);