Skip to main content

working_directory

Function working_directory 

Source
pub fn working_directory() -> Option<&'static Path>
Expand description

The working directory of the run in canonical form, or None where it cannot be read.

Canonical because it is compared against paths built on project_root, which is itself canonical; the two otherwise spell the same directory differently whenever a symlink or a Windows short name is involved. The working directory does not change during a run, so it is read once.