MCPcopy Index your code
hub / github.com/douglance/devsql / write

Function write

crates/ccql/src/sql/composite_storage.rs:807–812  ·  view source on GitHub ↗
(path: &std::path::Path, contents: &str)

Source from the content-addressed store, hash-verified

805 use crate::config::Config;
806
807 fn write(path: &std::path::Path, contents: &str) {
808 if let Some(parent) = path.parent() {
809 fs::create_dir_all(parent).expect("mkdir");
810 }
811 fs::write(path, contents).expect("write");
812 }
813
814 fn config_for(dir: &std::path::Path) -> Config {
815 Config::new_with_codex_data_dir(dir.to_path_buf(), dir.join("codex")).expect("config")

Calls

no outgoing calls