MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / canonicalize_lenient

Function canonicalize_lenient

atomic-cli/src/commands/agent/lifecycle.rs:760–762  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

758}
759
760fn canonicalize_lenient(path: &Path) -> PathBuf {
761 path.canonicalize().unwrap_or_else(|_| path.to_path_buf())
762}
763
764fn current_dir_canonical() -> CliResult<PathBuf> {
765 let cwd = std::env::current_dir().map_err(CliError::Io)?;

Callers 2

runMethod · 0.85
current_dir_canonicalFunction · 0.85

Calls 1

canonicalizeMethod · 0.80

Tested by

no test coverage detected