Browse Source

fix second listing

pull/2685/head
chrislu 3 years ago
parent
commit
2facd65998
  1. 5
      weed/mount/weedfs_dir_read.go

5
weed/mount/weedfs_dir_read.go

@ -135,8 +135,13 @@ func (wfs *WFS) doReadDirectory(input *fuse.ReadIn, out *fuse.DirEntryList, isPl
dh := wfs.GetDirectoryHandle(DirectoryHandleId(input.Fh)) dh := wfs.GetDirectoryHandle(DirectoryHandleId(input.Fh))
if dh.isFinished { if dh.isFinished {
if input.Offset == 0 {
dh.isFinished = false
dh.lastEntryName = ""
} else {
return fuse.OK return fuse.OK
} }
}
isEarlyTerminated := false isEarlyTerminated := false
dirPath := wfs.inodeToPath.GetPath(input.NodeId) dirPath := wfs.inodeToPath.GetPath(input.NodeId)

Loading…
Cancel
Save