pub fn duplicate(
base: &Path,
game: &str,
from: &str,
to: &str,
) -> Result<PathBuf>Expand description
Duplicates a profile directory (recursive copy) under a new name.
Symlinks are skipped rather than followed or recreated, so the copy cannot be
made to write outside to.
ยงErrors
Errors if to already exists. A failed copy can leave to partially
written; it is not cleaned up.