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

Function create_dir_restricted_sets_0o700

crates/openshell-core/src/paths.rs:191–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189 #[cfg(unix)]
190 #[test]
191 fn create_dir_restricted_sets_0o700() {
192 use std::os::unix::fs::PermissionsExt;
193 let tmp = tempfile::tempdir().unwrap();
194 let dir = tmp.path().join("restricted");
195 create_dir_restricted(&dir).unwrap();
196 let mode = std::fs::metadata(&dir).unwrap().permissions().mode() & 0o777;
197 assert_eq!(mode, 0o700, "expected 0700, got {mode:04o}");
198 }
199
200 #[cfg(unix)]
201 #[test]

Callers

nothing calls this directly

Calls 2

create_dir_restrictedFunction · 0.85
pathMethod · 0.80

Tested by

no test coverage detected