Treatment read

fs/file::read


Inputs

⇥ path: Block<string>

Outputs

↦ data: Stream<byte>
↦ error: Stream<string>
↦ failure: Block<void>
↦ finished: Block<void>
↦ reached: Block<void>


Read one file.

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, finished is emitted.

If any reading failure happens, failure is emitted and error contains text of the related text of error(s).