[][src]Function cap_primitives::fs::link

pub fn link(
    old_start: &File,
    old_path: &Path,
    new_start: &File,
    new_path: &Path
) -> Result<()>

Perform a linkat-like operation, ensuring that the resolution of the path never escapes the directory tree rooted at start.