Treatment read

fs/file::read


Inputs

⇥ path: Block<string>

Outputs

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


Read one file.

The content of the file given through path is streamed through data. Once file is totally read, success is emitted.

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