struct

Fuse::DirFiller

Inherits Struct < Value < Object

Streaming directory filler, passed to the escape-hatch form of readdir. Push entries as you discover them with << (or add), so a directory with a huge number of entries needn't be materialized into an Array(String) first.

def readdir(path : String, filler : Fuse::DirFiller, fi) : Int32
  filler << "." << ".."
  each_entry(path) { |name| filler << name }
  0
end

Constructors

new(buf : Pointer(Void), filler : Wrap::FillDir)
Source

Instance methods

<<(name : String) : self

Add one directory entry by name. Returns self so calls can be chained.

Source
add(name : String) : self

Add one directory entry by name. Returns self so calls can be chained.

Source