run_make_support::fs

Function symlink_file

Source
pub fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(original: P, link: Q)
Expand description

Create a new symbolic link to a file.

On both Windows and Unix, a symlink-to-file needs to be removed with a corresponding fs::remove_file and not fs::remove_dir.