MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / write_under

Function write_under

cli/src/build.rs:177–184  ·  view source on GitHub ↗
(root: &Path, rel: &str, bytes: &[u8])

Source from the content-addressed store, hash-verified

175}
176
177fn write_under(root: &Path, rel: &str, bytes: &[u8]) -> Result<()> {
178 let path = root.join(rel);
179 if let Some(p) = path.parent() {
180 fs::create_dir_all(p)?;
181 }
182 fs::write(&path, bytes)?;
183 Ok(())
184}
185
186/// Copy each `.py` preserving its path under the project root.
187fn copy_scripts(scripts: &[PathBuf], project: &Path, out_dir: &Path) -> Result<usize> {

Callers 1

vendor_packagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected