diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-01-19 23:59:46 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-01-19 23:59:46 -0800 |
| commit | 1b0bfbaf59ba613ebae6b90021b2270b3ac34bc5 (patch) | |
| tree | e8b08130edd727e14b8e1608fdb7771aab0d5764 /weed/shell/command_fs_du.go | |
| parent | 2f15e9346696d18032b9d2bfffe459635cb36171 (diff) | |
| download | seaweedfs-1b0bfbaf59ba613ebae6b90021b2270b3ac34bc5.tar.xz seaweedfs-1b0bfbaf59ba613ebae6b90021b2270b3ac34bc5.zip | |
refactoring
Diffstat (limited to 'weed/shell/command_fs_du.go')
| -rw-r--r-- | weed/shell/command_fs_du.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_fs_du.go b/weed/shell/command_fs_du.go index 1d7d79686..2c46350b2 100644 --- a/weed/shell/command_fs_du.go +++ b/weed/shell/command_fs_du.go @@ -59,7 +59,7 @@ func (c *commandFsDu) Do(args []string, commandEnv *CommandEnv, writer io.Writer func duTraverseDirectory(ctx context.Context, writer io.Writer, filerClient filer2.FilerClient, dir, name string) (blockCount uint64, byteCount uint64, err error) { - err = filer2.ReadDirAllEntries(ctx, filerClient, dir, name, func(entry *filer_pb.Entry, isLast bool) { + err = filer2.ReadDirAllEntries(ctx, filerClient, filer2.FullPath(dir), name, func(entry *filer_pb.Entry, isLast bool) { if entry.IsDirectory { subDir := fmt.Sprintf("%s/%s", dir, entry.Name) if dir == "/" { |
