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.

fix second listing

chrislu2facd65998e7
diff --git a/weed/mount/weedfs_dir_read.go b/weed/mount/weedfs_dir_read.go
index 008146773b..49ac22574c 100644
--- a/weed/mount/weedfs_dir_read.go
+++ b/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))
if dh.isFinished {
- return fuse.OK
+ if input.Offset == 0 {
+ dh.isFinished = false
+ dh.lastEntryName = ""
+ } else {
+ return fuse.OK
+ }
}
isEarlyTerminated := false