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

Function canonicalize_lenient

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

Source from the content-addressed store, hash-verified

679}
680
681fn canonicalize_lenient(path: &Path) -> PathBuf {
682 path.canonicalize().unwrap_or_else(|_| path.to_path_buf())
683}
684
685fn current_dir_canonical() -> CliResult<PathBuf> {
686 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