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

Function copy_dir

tests/agent_suite/skill_lint_cursor_test.rs:85–96  ·  view source on GitHub ↗
(src: &std::path::Path, dst: &std::path::Path)

Source from the content-addressed store, hash-verified

83}
84
85fn copy_dir(src: &std::path::Path, dst: &std::path::Path) {
86 std::fs::create_dir_all(dst).unwrap();
87 for entry in std::fs::read_dir(src).unwrap() {
88 let entry = entry.unwrap();
89 let target = dst.join(entry.file_name());
90 if entry.file_type().unwrap().is_dir() {
91 copy_dir(&entry.path(), &target);
92 } else {
93 std::fs::copy(entry.path(), &target).unwrap();
94 }
95 }
96}
97
98/// `tracedecay_*` identifiers that are documented output artifacts, not MCP
99/// tools (skills tell agents to report the `tracedecay_metrics:` line).

Callers 3

staged_cursor_skillsFunction · 0.70
copy_artifactMethod · 0.50
copy_dirMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected