MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / canonicalize_path

Function canonicalize_path

src/git_sync.rs:77–79  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

75}
76
77fn canonicalize_path(path: &Path) -> PathBuf {
78 path.canonicalize().unwrap_or_else(|_| path.to_path_buf())
79}
80
81/// Acquires an exclusive `flock(2)` on the given lock file path.
82///

Callers 1

with_repo_lockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected