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
set renamed item to new directory
Chris Lu789465d99e9a
diff --git a/weed/filesys/dir_rename.go b/weed/filesys/dir_rename.goindex df05dcd3fd..d50c6dab00 100644--- a/weed/filesys/dir_rename.go+++ b/weed/filesys/dir_rename.go@@ -71,11 +71,13 @@ func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDirectorglog.V(4).Infof("internal file node %s", file.Name)file.Name = req.NewNamefile.id = uint64(newFsNode)+ file.dir = newDir}if dir, ok := internalNode.(*Dir); ok {glog.V(4).Infof("internal dir node %s", dir.name)dir.name = req.NewNamedir.id = uint64(newFsNode)+ dir.parent = newDir}})