diff options
Diffstat (limited to '')
-rw-r--r-- | src/DatabasePrint.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx index 193b126cb..2bdb2e4fe 100644 --- a/src/DatabasePrint.cxx +++ b/src/DatabasePrint.cxx @@ -41,9 +41,8 @@ extern "C" { static bool PrintDirectory(struct client *client, const directory &directory) { - if (!directory_is_root(&directory)) - client_printf(client, "directory: %s\n", - directory_get_path(&directory)); + if (!directory.IsRoot()) + client_printf(client, "directory: %s\n", directory.GetPath()); return true; } @@ -53,11 +52,11 @@ print_playlist_in_directory(struct client *client, const directory &directory, const char *name_utf8) { - if (directory_is_root(&directory)) + if (directory.IsRoot()) client_printf(client, "playlist: %s\n", name_utf8); else client_printf(client, "playlist: %s/%s\n", - directory_get_path(&directory), name_utf8); + directory.GetPath(), name_utf8); } static bool |