Treatment scan

fs/dir::scan


Parameters

↳ var follow_links: bool = true
↳ var recursive: bool = false

Inputs

⇥ path: Block<string>

Outputs

↦ entries: Stream<string>
↦ error: Stream<string>
↦ success: Block<void>


Scan dir contents.

Each entry of the dir is streamed through entries. Once dir is totally scanned, success is emitted.
The scanning behavior is set up by the parameters:

  • recursive: set wether subdirectories must be scanned or not,
  • follow_links: set if symbolic links must be followed or not.

When a scan error happen, it is send through error stream.