mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-20 03:59:49 +08:00
error if the last arguement does not end with forward slash
This commit is contained in:
@@ -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() == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user