MCPcopy Create free account
hub / github.com/douglance/devsql / write

Function write

crates/devsql/src/engine.rs:861–864  ·  view source on GitHub ↗
(path: &std::path::Path, contents: &str)

Source from the content-addressed store, hash-verified

859 }
860
861 fn write(path: &std::path::Path, contents: &str) {
862 std::fs::create_dir_all(path.parent().unwrap()).expect("mkdir");
863 std::fs::write(path, contents).expect("write");
864 }
865
866 #[test]
867 fn loads_modern_projects_layout_with_usage_and_sessions() {

Callers 3

create_test_repoFunction · 0.50
create_test_repoFunction · 0.50

Calls

no outgoing calls

Tested by 3

create_test_repoFunction · 0.40
create_test_repoFunction · 0.40