This commit is contained in:
Chris Lu
2020-03-26 10:56:18 -07:00
parent cbce793753
commit 9e2e07b238
2 changed files with 7 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ func (c *FsCache) Move(oldPath util.FullPath, newPath util.FullPath) *FsNode {
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
f.Name = target.name
if f.entry != nil {
f.entry.Name = f.Name
}