aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:07:39 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 11:07:39 +0200
commit7a023eb0b2d41ae0511c45449abada94df04dd7d (patch)
treefd328c0a988450abaefbc211cfbe1589e7ace5c4 /src/command.c
parent8a50e8a2663b5afd2fb3c80ea3424f3e68e14695 (diff)
downloadmpd-7a023eb0b2d41ae0511c45449abada94df04dd7d.tar.gz
mpd-7a023eb0b2d41ae0511c45449abada94df04dd7d.tar.xz
mpd-7a023eb0b2d41ae0511c45449abada94df04dd7d.zip
database: removed printDirectoryInfo()
The same can be achieved with directory_print(db_get_directory()).
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c6
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);