clear file.entry

This commit is contained in:
Chris Lu
2020-10-30 00:02:16 -07:00
parent 0cdf172694
commit 6135cbaa02
2 changed files with 7 additions and 1 deletions

View File

@@ -96,7 +96,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
fsNode := wfs.fsNodeCache.GetFsNode(filePath)
if fsNode != nil {
if file, ok := fsNode.(*File); ok {
file.setEntry(nil)
file.clearEntry()
}
}
})