Browse Source

error if the last arguement does not end with forward slash

pull/809/head
Chris Lu 6 years ago
parent
commit
ba923e2864
  1. 3
      weed/command/filer_copy.go

3
weed/command/filer_copy.go

@ -80,7 +80,8 @@ func runCopy(cmd *Command, args []string) bool {
}
urlPath := filerUrl.Path
if !strings.HasSuffix(urlPath, "/") {
urlPath = urlPath + "/"
fmt.Printf("The last argument should be a folder and end with \"/\": %v\n", err)
return false
}
if filerUrl.Port() == "" {

Loading…
Cancel
Save