mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
error if the last arguement does not end with forward slash
This commit is contained in:
parent
332668a3fd
commit
ba923e2864
|
@ -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…
Reference in a new issue