Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

minor

Chris Lu63b0fb54f761
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index 610a3e5102..d9c5bc4860 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, "/")]