create_output_dir

Function create_output_dir 

Source
pub fn create_output_dir(path: &Path) -> Result<()>
Expand description

Creates an excluded from cache directory atomically with its parents as needed.

The atomicity only covers creating the leaf directory and exclusion from cache. Any missing parent directories will not be created in an atomic manner.

This function is idempotent and in addition to that it won’t exclude path from cache if it already exists.