Commit 964c5e6c authored by Christopher Schinnerl's avatar Christopher Schinnerl

address comments

parent 060f3c48
Pipeline #57420590 failed with stages
in 3 minutes and 13 seconds
......@@ -106,7 +106,7 @@ var (
renterFilesListCmd = &cobra.Command{
Use: "ls [path]",
Short: "List the status of all files within specified dir",
Long: "List the status of all files known to the renter within the specified folder on the Sia network.",
Long: "List the status of all files known to the renter within the specified folder on the Sia network. To query the root dir either '\"\"', '/' or '.' can be supplied",
Run: wrap(renterfileslistcmd),
}
......@@ -1108,11 +1108,11 @@ func renterfileslistcmd(path string) {
}
sort.Sort(bySiaPath(rgd.Files))
// Print root dir.
fmt.Fprintf(w, "/%v\n", rgd.Directories[0].SiaPath)
fmt.Fprintf(w, "%v/\n", rgd.Directories[0].SiaPath)
// Print dirs.
for i := 1; i < len(rgd.Directories); i++ {
_, name := filepath.Split(rgd.Directories[i].SiaPath)
fmt.Fprintf(w, " /%v\n", name)
fmt.Fprintf(w, " %v/\n", name)
}
// Print files.
for _, file := range rgd.Files {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment