mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-18 23:30:36 +08:00
tweaking
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user