Function cap_primitives::fs::symlink_contents

source ยท
pub fn symlink_contents<P: AsRef<Path>, Q: AsRef<Path>>(
    old_path: P,
    new_start: &File,
    new_path: Q,
) -> Result<()>
Expand description

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