database: removed printDirectoryInfo()
The same can be achieved with directory_print(db_get_directory()).
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user