MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / paths_same

Function paths_same

src/config.rs:716–720  ·  view source on GitHub ↗
(left: &Path, right: &Path)

Source from the content-addressed store, hash-verified

714}
715
716fn paths_same(left: &Path, right: &Path) -> bool {
717 let left = std::fs::canonicalize(left).unwrap_or_else(|_| left.to_path_buf());
718 let right = std::fs::canonicalize(right).unwrap_or_else(|_| right.to_path_buf());
719 left == right
720}
721
722/// Returns `true` if the path matches any of the configured `include` patterns.
723///

Callers 1

discover_project_rootFunction · 0.70

Calls 1

canonicalizeFunction · 0.85

Tested by

no test coverage detected