absolute_path

Function absolute_path 

Source
pub fn absolute_path<B: AsRef<Path>, P: AsRef<Path>>(
    base_dir: B,
    path: P,
) -> Result<PathBuf>
Expand description

Normalize a target path to an absolute path relative to a base directory (typically the current working directory) without accessing the file system

ยงArguments

  • base_dir - Base directory (must be absolute), typically the current working directory
  • path - Path