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.

error if the last arguement does not end with forward slash

Chris Luba923e2864da
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index 46bf61383a..2d318bc1a5 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -80,7 +80,8 @@ func runCopy(cmd *Command, args []string) bool {
}
urlPath := filerUrl.Path
if !strings.HasSuffix(urlPath, "/") {
- urlPath = urlPath + "/"
+ fmt.Printf("The last argument should be a folder and end with \"/\": %v\n", err)
+ return false
}
if filerUrl.Port() == "" {