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
avoid forward slash in file names
Chris Lu609e228578ff
diff --git a/weed/shell/command_fs_meta_save.go b/weed/shell/command_fs_meta_save.goindex d154fc12b9..37d94fe42b 100644--- a/weed/shell/command_fs_meta_save.go+++ b/weed/shell/command_fs_meta_save.go@@ -6,6 +6,7 @@ import ("io""os""path/filepath"+ "strings""sync""sync/atomic""time"@@ -89,6 +90,7 @@ func (c *commandFsMetaSave) Do(args []string, commandEnv *CommandEnv, writer io.ext := filepath.Ext(entry.Entry.Name)if encrypted, encErr := util.Encrypt([]byte(entry.Entry.Name), cipherKey); encErr == nil {entry.Entry.Name = util.Base64Encode(encrypted)[:len(entry.Entry.Name)] + ext+ entry.Entry.Name = strings.ReplaceAll(entry.Entry.Name, "/", "x")}}bytes, err := proto.Marshal(entry)