Function origen::utility::file_utils::symlink[][src]

pub fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> Result<()>
Expand description

Create a symlink, works on Linux or Windows. The dst path will be a symbolic link pointing to the src path.

Examples

use std::path::Path;
use origen::utility::file_utils::symlink;

// Create a symlink from my_file.rs to proj/files/my_file.rs
symlink(Path::new("my_file.rs"), Path::new("proj/files/my_file.rs"));