file_system: Improve output of the dump function

This commit is contained in:
2026-06-02 11:43:15 +02:00
parent f6185054b5
commit c922ed62e1
+6 -2
View File
@@ -483,6 +483,10 @@ fn dumpEntity(entity: *Entity, depth: u32) void {
}
pub fn dump(self: *FileSystem) void {
dumpEntity(self.root, 0);
std.debug.print("\n", .{});
if (self.root.children.items.len == 0) {
std.debug.print("(no files)\n", .{});
} else {
dumpEntity(self.root, 0);
std.debug.print("\n", .{});
}
}