replace_symlink

Function replace_symlink 

Source
pub fn replace_symlink(
    src: impl AsRef<Path>,
    dst: impl AsRef<Path>,
) -> Result<()>
Expand description

Create a symlink at dst pointing to src, replacing any existing symlink if necessary.

On Unix, this method creates a temporary file, then moves it into place.