aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:07:39 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-11 19:21:48 -0700
commit0576b8abf8b2fd25105f6e0190a93ddec298e9fb (patch)
tree0a83a01e7940e813843a18c7cc4fb9d23470e1ab /src/command.c
parent729523ec80f35a683c982054628cd47d2161d3d4 (diff)
downloadmpd-0576b8abf8b2fd25105f6e0190a93ddec298e9fb.tar.gz
mpd-0576b8abf8b2fd25105f6e0190a93ddec298e9fb.tar.xz
mpd-0576b8abf8b2fd25105f6e0190a93ddec298e9fb.zip
database: removed printDirectoryInfo()
The same can be achieved with directory_print(db_get_directory()).
Diffstat (limited to '')
-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);