Skip to content

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.

set target Dir object when moving

Chris Lu1fef59834712
diff --git a/weed/filesys/fscache.go b/weed/filesys/fscache.go
index 6edb286bf5..bf6f6cd009 100644
--- a/weed/filesys/fscache.go
+++ b/weed/filesys/fscache.go
@@ -99,6 +99,7 @@ func (c *FsCache) Move(oldPath util.FullPath, newPath util.FullPath) *FsNode {
if f.entry != nil {
f.entry.Name = f.Name
}
+ f.dir = target.parent.node.(*Dir)
}
parent.disconnectChild(target)