Skip to main content

symlink_file

Function symlink_file 

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

Creates a symlink to a file, replacing any existing file or symlink.

ยงErrors

Returns an error if:

  • The existing file or symlink cannot be removed.
  • The symlink, hard link, or file copy fails.