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

Function make_project

src/global.rs:589–593  ·  view source on GitHub ↗

Plant a `.tracedecay/tracedecay.db` marker so `is_project_dir` returns true.

(root: &Path)

Source from the content-addressed store, hash-verified

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");

Calls 1

writeFunction · 0.85