ln_sf

Function ln_sf 

Source
pub fn ln_sf<P: AsRef<Path>>(target: &P, link: &P) -> Result<()>
Expand description

Creates a symbolic link from the target to the link path, removing any existing file at the link location.

ยงErrors

  • A filesystem operation (open/read/write/remove) fails.
  • Creating the symlink fails.
  • The existing link cannot be removed.