diff --git a/ls.go b/ls.go index 6bc8cb1c..cb429214 100644 --- a/ls.go +++ b/ls.go @@ -132,7 +132,7 @@ func doList(clnt client.Client, recursive, multipleArgs bool) *probe.Error { break } if multipleArgs && parentContent.Type.IsDir() { - contentCh.Content.Name = filepath.Join(parentContent.Name, contentCh.Content.Name) + contentCh.Content.Name = filepath.Join(parentContent.Name, strings.TrimPrefix(contentCh.Content.Name, parentContent.Name)) } Prints("%s\n", parseContent(contentCh.Content)) }