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

Function restrict_owner_only_dir

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

Source from the content-addressed store, hash-verified

4173
4174#[cfg(unix)]
4175async fn restrict_owner_only_dir(path: &Path) -> Result<(), std::io::Error> {
4176 tokio::fs::set_permissions(path, fs::Permissions::from_mode(0o700)).await
4177}
4178
4179#[cfg(not(unix))]
4180async fn restrict_owner_only_dir(_path: &Path) -> Result<(), std::io::Error> {

Callers 2

create_private_dir_allFunction · 0.85
write_sandbox_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected