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.

adjust formatting remote location

Chris Lufbfc90fd1e93
diff --git a/weed/remote_storage/remote_storage.go b/weed/remote_storage/remote_storage.go
index 4d0b5db8df..3f76452cc0 100644
--- a/weed/remote_storage/remote_storage.go
+++ b/weed/remote_storage/remote_storage.go
@@ -57,6 +57,9 @@ func parseNoBucketLocation(remote string) (loc *remote_pb.RemoteStorageLocation)
}
func FormatLocation(loc *remote_pb.RemoteStorageLocation) string {
+ if loc.Bucket == "" {
+ return fmt.Sprintf("%s%s", loc.Name, loc.Path)
+ }
return fmt.Sprintf("%s/%s%s", loc.Name, loc.Bucket, loc.Path)
}