diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-25 14:15:53 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-25 14:15:53 -0700 |
| commit | 63b0fb54f76179a44c37041d78feb8c033540c2c (patch) | |
| tree | ae01ec50d118430849a1d906ac73261571e92ef4 | |
| parent | 27ba0a2be334cdb9dafc93c30be9d168ac2ca58c (diff) | |
| download | seaweedfs-63b0fb54f76179a44c37041d78feb8c033540c2c.tar.xz seaweedfs-63b0fb54f76179a44c37041d78feb8c033540c2c.zip | |
minor
| -rw-r--r-- | weed/command/filer_copy.go | 2 |
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, "/")] |
