Treatment create



↳ var recursive: bool = true


⇥ path: Block<string>


↦ error: Block<string>
↦ failure: Block<void>
↦ success: Block<void>

Create directory.

Create the directory specified in path, with creation rules depending on parameter:

  • recursive: when true, the whole path is targeting the directory is created, and no errors are emitted if the directory already exists; when false, only the final directory in the path is created, and errors are emitted if a parent is missing, or the final directory already exists.

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