mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 13:08:52 +08:00
minor
This commit is contained in:
@@ -116,7 +116,7 @@ func runCopy(cmd *Command, args []string) bool {
|
|||||||
fmt.Printf("read from filer %s: %v\n", filerGrpcAddress, err)
|
fmt.Printf("read from filer %s: %v\n", filerGrpcAddress, err)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(urlPath, dirBuckets) {
|
if strings.HasPrefix(urlPath, dirBuckets+"/") {
|
||||||
restPath := urlPath[len(dirBuckets)+1:]
|
restPath := urlPath[len(dirBuckets)+1:]
|
||||||
if strings.Index(restPath, "/") > 0 {
|
if strings.Index(restPath, "/") > 0 {
|
||||||
expectedBucket := restPath[:strings.Index(restPath, "/")]
|
expectedBucket := restPath[:strings.Index(restPath, "/")]
|
||||||
|
Reference in New Issue
Block a user