Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

weed shell: fs.tree fix directory tree listing

Chris Lub2d92a299217
diff --git a/weed/shell/command_fs_tree.go b/weed/shell/command_fs_tree.go
index 289470749b..f1ffc9e4b2 100644
--- a/weed/shell/command_fs_tree.go
+++ b/weed/shell/command_fs_tree.go
@@ -77,7 +77,7 @@ func treeTraverseDirectory(ctx context.Context, writer io.Writer, client filer_p
for i, entry := range resp.Entries {
- if level < 0 {
+ if level < 0 && name != "" {
if entry.Name != name {
break
}