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

Function restrict_owner_read_write

crates/openshell-driver-vm/src/driver.rs:4452–4454  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

4450
4451#[cfg(unix)]
4452async fn restrict_owner_read_write(path: &Path) -> Result<(), std::io::Error> {
4453 tokio::fs::set_permissions(path, fs::Permissions::from_mode(0o600)).await
4454}
4455
4456#[cfg(not(unix))]
4457async fn restrict_owner_read_write(_path: &Path) -> Result<(), std::io::Error> {

Callers 1

write_private_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected