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
rename: set new name for renamed files
Chris Lucbce79375392
diff --git a/weed/filesys/fscache.go b/weed/filesys/fscache.goindex 7e5b0a68c5..9114c91b20 100644--- a/weed/filesys/fscache.go+++ b/weed/filesys/fscache.go@@ -94,6 +94,12 @@ func (c *FsCache) Move(oldPath util.FullPath, newPath util.FullPath) *FsNode {if dir, ok := src.node.(*Dir); ok {dir.name = target.name // target is not Dir, but a shortcut}+ if f, ok := src.node.(*File); ok {+ f.Name = target.name // target is not Dir, but a shortcut+ if f.entry != nil {+ f.entry.Name = f.Name+ }+ }parent.disconnectChild(target)target.deleteSelf()