Skip to main content

unshare_path

Function unshare_path 

Source
pub fn unshare_path(project_root: &Path, root: &Path, rel: &Path) -> Result<()>
Expand description

Makes root/rel writable without changing the files that copy_project links into root.

Copies linked directory trees so aliases in nested directories see the writable target. Rebases project-local symlinks and preserves external targets and dangling links. Removes a symlink at rel so the caller can write the mutant without changing its source.