pub fn atomic_create_dir(dir_name: &Path) -> Result<()>