Browse Source

tweaking

pull/1293/head
Chris Lu 5 years ago
parent
commit
508ec01ab0
  1. 4
      weed/shell/command_fs_ls.go

4
weed/shell/command_fs_ls.go

@ -88,9 +88,9 @@ func (c *commandFsLs) Do(args []string, commandEnv *CommandEnv, writer io.Writer
} }
} }
if dir == "/" {
if strings.HasSuffix(dir, "/") {
// just for printing // just for printing
dir = ""
dir = dir[:len(dir)-1]
} }
fmt.Fprintf(writer, "%s %3d %s %s %6d %s/%s\n", fmt.Fprintf(writer, "%s %3d %s %s %6d %s/%s\n",
fileMode, len(entry.Chunks), fileMode, len(entry.Chunks),

Loading…
Cancel
Save