From 7a023eb0b2d41ae0511c45449abada94df04dd7d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 11:07:39 +0200 Subject: database: removed printDirectoryInfo() The same can be achieved with directory_print(db_get_directory()). --- src/command.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/command.c') 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); -- cgit v1.2.3