aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_tree.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-04-05 23:42:36 -0700
committerChris Lu <chris.lu@gmail.com>2019-04-05 23:42:36 -0700
commitb2d92a29921775c8e9411fc31950e92656d328b9 (patch)
tree4bff5c0a2a3cc11eaf4de52d7f949f39ead22d17 /weed/shell/command_fs_tree.go
parent24c020104aedbf48e568eaebd79d35d7125b55ce (diff)
downloadseaweedfs-b2d92a29921775c8e9411fc31950e92656d328b9.tar.xz
seaweedfs-b2d92a29921775c8e9411fc31950e92656d328b9.zip
weed shell: fs.tree fix directory tree listing
Diffstat (limited to 'weed/shell/command_fs_tree.go')
-rw-r--r--weed/shell/command_fs_tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_fs_tree.go b/weed/shell/command_fs_tree.go
index 289470749..f1ffc9e4b 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
}