diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2019-03-26 00:01:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-26 00:01:50 -0700 |
| commit | d2bb351c8810f3a4589aef52436be7d41dcf12e4 (patch) | |
| tree | 60218d8344aa343a115fd94c00961407b3fdc735 /weed/shell | |
| parent | 91b9a684933138b21b9453b5cdc5ab97f54ed85d (diff) | |
| parent | 7a14cdc90cc673286e501b900ec28b7f186f2cfe (diff) | |
| download | seaweedfs-d2bb351c8810f3a4589aef52436be7d41dcf12e4.tar.xz seaweedfs-d2bb351c8810f3a4589aef52436be7d41dcf12e4.zip | |
Merge pull request #902 from chrislusf/add_volume_follow
weed backup
Diffstat (limited to 'weed/shell')
| -rw-r--r-- | weed/shell/command_fs_du.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_fs_du.go b/weed/shell/command_fs_du.go index 1206596b0..3fecac9a8 100644 --- a/weed/shell/command_fs_du.go +++ b/weed/shell/command_fs_du.go @@ -42,10 +42,10 @@ func (c *commandFsDu) Do(args []string, commandEnv *commandEnv, writer io.Writer dir, name := filer2.FullPath(path).DirAndName() if strings.HasSuffix(path, "/") { - if path == "/"{ + if path == "/" { dir, name = "/", "" - }else{ - dir, name = path[0 : len(path)-1], "" + } else { + dir, name = path[0:len(path)-1], "" } } |
