cap_primitives::fs

Function read_link_contents

source
pub fn read_link_contents(start: &File, path: &Path) -> Result<PathBuf>
Expand description

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