MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / write_private_file

Function write_private_file

crates/openshell-driver-vm/src/driver.rs:4446–4449  ·  view source on GitHub ↗
(path: &Path, bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

4444}
4445
4446async fn write_private_file(path: &Path, bytes: Vec<u8>) -> Result<(), std::io::Error> {
4447 tokio::fs::write(path, bytes).await?;
4448 restrict_owner_read_write(path).await
4449}
4450
4451#[cfg(unix)]
4452async fn restrict_owner_read_write(path: &Path) -> Result<(), std::io::Error> {

Callers 1

write_sandbox_requestFunction · 0.85

Calls 1

Tested by

no test coverage detected