Treatment scan
fs/dir::scan
Parameters
↳ var follow_links:
bool = true
↳ var recursive:
bool = false
Inputs
⇥ path:
Block<string>
Outputs
↦ entries:
Stream<string>
↦ failure:
Block<void>
↦ message:
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.
If any scan error happens, failure
is emitted and message
contains text of the related text of error(s).