mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 00:17:55 +08:00
adjust formatting remote location
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user