mount: fix directory pagination when using midnight commander

This commit is contained in:
chrislu 2022-03-03 02:59:31 -08:00
parent a96d4254e9
commit 28b8974a3a

View file

@ -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 {
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
}
}