Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/fuse/file_system.cr
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ module Fuse
filler.call buf, ".".to_unsafe, Pointer(LibC::Stat).null, 0i64
filler.call buf, "..".to_unsafe, Pointer(LibC::Stat).null, 0i64

if r.is_a?(Enumerable(String))
r.each { |path| filler.call buf, path.to_unsafe, Pointer(LibC::Stat).null, 0i64 }
if r.is_a?(Enumerable(String | Nil))
r.each { |path| next if path.nil?; filler.call buf, path.to_unsafe, Pointer(LibC::Stat).null, 0i64 }
else
r.each { |path, stat| filler.call buf, path.to_unsafe, pointerof(stat), 0i64 }
end
Expand Down