Plant a `.tracedecay/tracedecay.db` marker so `is_project_dir` returns true.
(root: &Path)
| 587 | |
| 588 | /// Plant a `.tracedecay/tracedecay.db` marker so `is_project_dir` returns true. |
| 589 | fn make_project(root: &Path) { |
| 590 | let ts = root.join(".tracedecay"); |
| 591 | fs::create_dir_all(&ts).unwrap(); |
| 592 | fs::write(ts.join("tracedecay.db"), b"").unwrap(); |
| 593 | } |
| 594 | |
| 595 | fn make_enrolled_project(root: &Path, project_id: &str) { |
| 596 | let ts = root.join(".tracedecay"); |