pub fn create_dir_all_excluded_from_backups_atomic(
    p: impl AsRef<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 p from cache if it already exists.