fswalk
Types
A function that filters entries in the walk iterator.
pub type EntryFilter =
fn(Entry) -> Bool
Incomplete stat data.
pub type Stat {
Stat(is_directory: Bool)
}
Constructors
-
Stat(is_directory: Bool)
See builder.
pub opaque type WalkBuilder(traversal_filter, path)
Values
pub fn walk(
builder: WalkBuilder(t, @internal Som),
) -> yielder.Yielder(Result(Entry, simplifile.FileError))
Walks the filesystem lazily.
pub fn with_path(
builder: WalkBuilder(t, p),
path: String,
) -> WalkBuilder(t, @internal Som)
Create a new WalkBuilder bound to a directory path to walk
pub fn with_traversal_filter(
builder: WalkBuilder(t, p),
traversal_filter: fn(Entry) -> Bool,
) -> WalkBuilder(@internal Som, p)
Create a new WalkBuilder adding an additional entry filter function.