Skip to main content

open_kept

Function open_kept 

Source
pub fn open_kept(run_dir: &Path, path: &str) -> Result<Option<File>>
Expand description

Opens the kept file path (such as POD_LOG or BOOTSTRAP_LOG) of run_dir for reading; None when it, or .pod, does not exist.

ยงErrors

Returns an error of kind InvalidInput when .pod or the file is a symbolic link, a hard link or not a regular file, and the I/O error of opening it otherwise.