CreateDirectory

Function CreateDirectory 

Source
pub fn CreateDirectory(
    Path: PathBuf,
    Recursive: bool,
) -> ActionEffect<Arc<dyn FileSystemWriter>, CommonError, ()>
Expand description

Creates an effect that, when executed, will create a new directory at the specified path.

It uses the FileSystemWriter capability from the environment to perform the actual file I/O.

§Parameters

  • Path: The PathBuf of the directory to create.
  • Recursive: If true, creates all parent directories as needed.

§Returns

An ActionEffect that resolves to () on success.