Skip to main content

open_rooted_source

Function open_rooted_source 

Source
pub fn open_rooted_source(path: &Path, root: &Path) -> Result<File, Error>
Expand description

The rooted no-follow open on its own, for a source that is not read as text (a history database, core::import::database): one open, relative to the root’s descriptor, no link followed in any component on Unix, a regular file. The caller has made the path decision and runs every further check on the returned descriptor.