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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
s3tables: use path.Join for path construction and align namespace paths
Chris Lub01504649d8a
diff --git a/weed/s3api/s3tables/utils.go b/weed/s3api/s3tables/utils.goindex b796a1d098..b67af5863b 100644--- a/weed/s3api/s3tables/utils.go+++ b/weed/s3api/s3tables/utils.go@@ -2,6 +2,7 @@ package s3tablesimport ("fmt"+ "path""path/filepath""regexp""time"@@ -35,17 +36,17 @@ func parseTableFromARN(arn string) (bucketName, namespace, tableName string, err// getTableBucketPath returns the filer path for a table bucketfunc getTableBucketPath(bucketName string) string {- return fmt.Sprintf("%s/%s", TablesPath, bucketName)+ return path.Join(TablesPath, bucketName)}// getNamespacePath returns the filer path for a namespacefunc getNamespacePath(bucketName, namespace string) string {- return fmt.Sprintf("%s/%s/namespaces/%s", TablesPath, bucketName, namespace)+ return path.Join(TablesPath, bucketName, namespace)}// getTablePath returns the filer path for a tablefunc getTablePath(bucketName, namespace, tableName string) string {- return fmt.Sprintf("%s/%s/namespaces/%s/%s", TablesPath, bucketName, namespace, tableName)+ return path.Join(TablesPath, bucketName, namespace, tableName)}// Metadata structures