file_system: Improve output of the dump function
This commit is contained in:
@@ -483,6 +483,10 @@ fn dumpEntity(entity: *Entity, depth: u32) void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn dump(self: *FileSystem) void {
|
pub fn dump(self: *FileSystem) void {
|
||||||
|
if (self.root.children.items.len == 0) {
|
||||||
|
std.debug.print("(no files)\n", .{});
|
||||||
|
} else {
|
||||||
dumpEntity(self.root, 0);
|
dumpEntity(self.root, 0);
|
||||||
std.debug.print("\n", .{});
|
std.debug.print("\n", .{});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user