Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

mount: fix directory pagination when using midnight commander

chrislu28b8974a3abf
diff --git a/weed/mount/weedfs_dir_read.go b/weed/mount/weedfs_dir_read.go
index f7cbae7f78..e5acbdd435 100644
--- a/weed/mount/weedfs_dir_read.go
+++ b/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 {
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
}
}