diff options
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c index 88fa04fbd..489761b52 100644 --- a/src/command.c +++ b/src/command.c @@ -574,16 +574,20 @@ static int handleLsInfo(struct client *client, int argc, char *argv[]) { const char *path = ""; + const struct directory *directory; if (argc == 2) path = argv[1]; - if (printDirectoryInfo(client, path) < 0) { + directory = getDirectory(path); + if (directory == NULL) { command_error(client, ACK_ERROR_NO_EXIST, "directory not found"); return -1; } + directory_print(client, directory); + if (isRootDirectory(path)) return lsPlaylists(client, path); |