to_lexical_absolute

Function to_lexical_absolute 

Source
pub fn to_lexical_absolute(path: PathBuf, exists: bool) -> PathBuf
Expand description

Convert a path to a absolute path.

§Arguments

  • path - The path to convert.
  • exists - Whether the path must exist.

§Returns

The absolute path.

§Exit

Exits the process if the path could not be resolved.