Function joat_path::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