(path: PathBuf)
| 626 | } |
| 627 | |
| 628 | fn 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 |