diff options
Diffstat (limited to 'src/dbUtils.c')
-rw-r--r-- | src/dbUtils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index d73366e67..3677b2ae6 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -64,9 +64,10 @@ static int printDirectoryInDirectory(struct directory *directory, void *data) { struct client *client = data; - if (!isRootDirectory(directory->path)) { + + if (!directory_is_root(directory)) client_printf(client, "directory: %s\n", directory_get_path(directory)); - } + return 0; } @@ -374,7 +375,7 @@ sumSavedFilenameMemoryInDirectory(struct directory *dir, void *data) { int *sum = data; - if (isRootDirectory(dir->path)) + if (directory_is_root(dir)) return 0; *sum += (strlen(directory_get_path(dir)) + 1 |