aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/command/filer_copy.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index 46bf61383..2d318bc1a 100644
--- a/weed/command/filer_copy.go
+++ b/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() == "" {