View Source DirStream (fnord v0.5.6)

Summary

Functions

Creates a stream that lazily traverses the given directory recursively.

Functions

new(path, continue? \\ fn _ -> true end)

Creates a stream that lazily traverses the given directory recursively.

The continue? callback allows the caller to control traversal. It is called with each directory path before traversing its contents. If it returns false, the directory is skipped.

Parameters:

  • path (String): The root directory to traverse.
  • continue? (Function, optional): A function (String.t() -> boolean) that determines whether to continue traversing a directory. Defaults to always continuing.

Returns:

  • A Stream that yields file paths.