1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-09-17 06:20:31 +02:00
This commit is contained in:
Chris Lu 2020-10-25 14:15:53 -07:00
parent 27ba0a2be3
commit 63b0fb54f7

View file

@ -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, "/")]