MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / set_permissions

Method set_permissions

atomic-core/src/output/filesystem/mod.rs:307–310  ·  view source on GitHub ↗

Set permissions on a file or directory.

(&self, path: &str, permissions: u16)

Source from the content-addressed store, hash-verified

305
306 /// Set permissions on a file or directory.
307 fn set_permissions(&self, path: &str, permissions: u16) -> Result<(), Self::Error> {
308 let abs_path = self.resolve_path(path)?;
309 set_permissions(&abs_path, permissions)
310 }
311
312 /// Open a file for writing, creating it if necessary.
313 fn write_file(&self, path: &str, inode: Inode) -> Result<Self::Writer, Self::Error> {

Callers 1

test_set_permissionsFunction · 0.45

Calls 2

set_permissionsFunction · 0.85
resolve_pathMethod · 0.45

Tested by 1

test_set_permissionsFunction · 0.36