Skip to main content

ensure_parent_dir

Function ensure_parent_dir 

Source
pub fn ensure_parent_dir(path: &str) -> Result<()>
Expand description

Ensure the parent directory of path exists, creating it (and any missing ancestors) as needed. No-op when path has no parent or the parent is the current directory.