1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-07 09:37:49 +02:00

error if the last arguement does not end with forward slash

This commit is contained in:
Chris Lu 2018-12-23 18:20:11 -08:00
parent 332668a3fd
commit ba923e2864

View file

@ -80,7 +80,8 @@ func runCopy(cmd *Command, args []string) bool {
} }
urlPath := filerUrl.Path urlPath := filerUrl.Path
if !strings.HasSuffix(urlPath, "/") { 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() == "" { if filerUrl.Port() == "" {