Treatment create
fs/dir::create
Parameters
↳ var recursive:
bool = true
Inputs
⇥ path:
Block<string>
Outputs
↦ error:
Block<string>
↦ failure:
Block<void>
↦ success:
Block<void>
Create directory.
Create the directory specified in path
, with creation rules depending on parameter:
recursive
: whentrue
, the whole path is targeting the directory is created, and no errors are emitted if the directory already exists; whenfalse
, 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).