Browse Source

mount: fix directory pagination when using midnight commander

pull/2727/head
chrislu 3 years ago
parent
commit
28b8974a3a
  1. 10
      weed/mount/weedfs_dir_read.go

10
weed/mount/weedfs_dir_read.go

@ -132,11 +132,11 @@ func (wfs *WFS) ReadDirPlus(cancel <-chan struct{}, input *fuse.ReadIn, out *fus
func (wfs *WFS) doReadDirectory(input *fuse.ReadIn, out *fuse.DirEntryList, isPlusMode bool) fuse.Status { func (wfs *WFS) doReadDirectory(input *fuse.ReadIn, out *fuse.DirEntryList, isPlusMode bool) fuse.Status {
dh := wfs.GetDirectoryHandle(DirectoryHandleId(input.Fh)) dh := wfs.GetDirectoryHandle(DirectoryHandleId(input.Fh))
if dh.isFinished {
if input.Offset == 0 {
dh.isFinished = false
dh.lastEntryName = ""
} else {
if input.Offset == 0 {
dh.isFinished = false
dh.lastEntryName = ""
} else {
if dh.isFinished {
return fuse.OK return fuse.OK
} }
} }

Loading…
Cancel
Save