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

Function absolutize_path

src/config.rs:628–636  ·  view source on GitHub ↗
(path: PathBuf)

Source from the content-addressed store, hash-verified

626}
627
628fn absolutize_path(path: PathBuf) -> PathBuf {
629 if path.is_absolute() {
630 path
631 } else {
632 std::env::current_dir()
633 .unwrap_or_else(|_| PathBuf::from("."))
634 .join(path)
635 }
636}
637
638/// Walks from `start` upward looking for an initialised repo marker
639/// (`.tracedecay/tracedecay.db`) or a profile-storage enrollment marker

Callers 1

resolve_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected