pub fn symlink_or_copy_file(
src: impl AsRef<Path>,
dst: impl AsRef<Path>,
) -> Result<()>Expand description
Create a symlink at dst pointing to src on Unix or copy src to dst on Windows
This does not replace an existing symlink or file at dst.
This does not fallback to copying on Unix.
This function should only be used for files. If targeting a directory, use replace_symlink
instead; it will use a junction on Windows, which is more performant.