Treatment readLocal
fs/local::readLocal
Parameters
↳ var path: string
Inputs
⇥ trigger: Block<void>
Outputs
↦ completed: Block<void>
↦ data: Stream<byte>
↦ errors: Stream<string>
↦ failed: Block<void>
↦ finished: Block<void>
↦ reached: Block<void>
Read one file on local filesystem.
The content of the file given through path is streamed through data.
When file is reached and opened, reached is emitted.
Once file is totally and succesfully read, completed is emitted.
finished is emitted when the read ends, regardless of the reason.
All reading errors are streamed through errors.
If any reading failure happens, failed is emitted.