mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
tweaking
This commit is contained in:
parent
f4fcde05b6
commit
508ec01ab0
|
@ -88,9 +88,9 @@ func (c *commandFsLs) Do(args []string, commandEnv *CommandEnv, writer io.Writer
|
|||
}
|
||||
}
|
||||
|
||||
if dir == "/" {
|
||||
if strings.HasSuffix(dir, "/") {
|
||||
// just for printing
|
||||
dir = ""
|
||||
dir = dir[:len(dir)-1]
|
||||
}
|
||||
fmt.Fprintf(writer, "%s %3d %s %s %6d %s/%s\n",
|
||||
fileMode, len(entry.Chunks),
|
||||
|
|
Loading…
Reference in a new issue