diff --git a/samples/memfs/inode.go b/samples/memfs/inode.go index 2ec2397..ea6c172 100644 --- a/samples/memfs/inode.go +++ b/samples/memfs/inode.go @@ -292,7 +292,7 @@ func (in *inode) ReadDir(p []byte, offset int) (n int) { } tmp := fuseutil.WriteDirent(p[n:], in.entries[i]) - if n == 0 { + if tmp == 0 { break }