From 63b0fb54f76179a44c37041d78feb8c033540c2c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 25 Oct 2020 14:15:53 -0700 Subject: [PATCH] minor --- weed/command/filer_copy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "/")]