|
|
@ -105,10 +105,10 @@ func (dir *Dir) Fsync(ctx context.Context, req *fuse.FsyncRequest) error { |
|
|
|
func (dir *Dir) newFile(name string, entry *filer_pb.Entry) fs.Node { |
|
|
|
f := dir.wfs.fsNodeCache.EnsureFsNode(util.NewFullPath(dir.FullPath(), name), func() fs.Node { |
|
|
|
return &File{ |
|
|
|
Name: name, |
|
|
|
dir: dir, |
|
|
|
wfs: dir.wfs, |
|
|
|
entry: entry, |
|
|
|
Name: name, |
|
|
|
dir: dir, |
|
|
|
wfs: dir.wfs, |
|
|
|
entry: entry, |
|
|
|
} |
|
|
|
}) |
|
|
|
f.(*File).dir = dir // in case dir node was created later
|
|
|
|