fix: delete a file and then create a directory with the same name

This commit is contained in:
Chris Lu
2020-03-29 01:39:48 -07:00
parent b656e05aaf
commit 54768d0761
2 changed files with 10 additions and 1 deletions

View File

@@ -227,6 +227,7 @@ func (file *File) maybeLoadEntry(ctx context.Context) error {
if file.entry == nil || file.isOpen <= 0 {
entry, err := file.wfs.maybeLoadEntry(file.dir.FullPath(), file.Name)
if err != nil {
glog.V(3).Infof("maybeLoadEntry file %s/%s: %v", file.dir.FullPath(), file.Name, err)
return err
}
if entry != nil {