Browse Source

fix second listing

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

7
weed/mount/weedfs_dir_read.go

@ -135,7 +135,12 @@ 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 {
return fuse.OK
if input.Offset == 0 {
dh.isFinished = false
dh.lastEntryName = ""
} else {
return fuse.OK
}
} }
isEarlyTerminated := false isEarlyTerminated := false

Loading…
Cancel
Save