replace_directory

Function replace_directory 

Source
pub fn replace_directory(
    source_dir: &Path,
    target_dir: &Path,
) -> Result<(), Box<FsError>>
Expand description

Replaces source_dir with target_dir, copying across volumes when rename is not available and rolling back the backup on failure.

On Windows, cross-volume rename failures fall back to copy + cleanup instead of failing the install outright.