MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / write_bytes_file

Function write_bytes_file

xtask/src/main.rs:7491–7496  ·  view source on GitHub ↗
(path: &Path, bytes: &[u8])

Source from the content-addressed store, hash-verified

7489}
7490
7491fn write_bytes_file(path: &Path, bytes: &[u8]) -> Result<()> {
7492 if let Some(parent) = path.parent() {
7493 fs::create_dir_all(parent).with_context(|| format!("create {}", parent.display()))?;
7494 }
7495 fs::write(path, bytes).with_context(|| format!("write {}", path.display()))
7496}
7497
7498fn extension_build_module_path(
7499 build_dir: &Path,

Callers 1

from_packaged_assetsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected