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

Function canonicalize_lenient

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

Source from the content-addressed store, hash-verified

428}
429
430fn canonicalize_lenient(path: &Path) -> PathBuf {
431 path.canonicalize().unwrap_or_else(|_| path.to_path_buf())
432}
433
434fn current_dir_canonical() -> CliResult<PathBuf> {
435 let cwd = std::env::current_dir().map_err(CliError::Io)?;

Callers 2

runMethod · 0.85
current_dir_canonicalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected