aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/filer_copy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index 610a3e510..d9c5bc486 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -116,7 +116,7 @@ func runCopy(cmd *Command, args []string) bool {
fmt.Printf("read from filer %s: %v\n", filerGrpcAddress, err)
return false
}
- if strings.HasPrefix(urlPath, dirBuckets) {
+ if strings.HasPrefix(urlPath, dirBuckets+"/") {
restPath := urlPath[len(dirBuckets)+1:]
if strings.Index(restPath, "/") > 0 {
expectedBucket := restPath[:strings.Index(restPath, "/")]