Skip to main content

resolve_effective_cwd

Function resolve_effective_cwd 

Source
pub fn resolve_effective_cwd(cwd_override: Option<&str>) -> String
Expand description

Resolve the effective working directory for a job.

If cwd_override is Some, use that path as the base. Otherwise use the current process working directory. In either case, attempt to canonicalize the path for consistent comparison; on failure, fall back to the absolute path representation (avoids symlink / permission issues on some systems).