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

Method set_permissions

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

Set permissions on a file or directory.

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

Source from the content-addressed store, hash-verified

282
283 /// Set permissions on a file or directory.
284 fn set_permissions(&self, path: &str, permissions: u16) -> Result<(), Self::Error> {
285 let abs_path = self.resolve_path(path)?;
286 set_permissions(&abs_path, permissions)
287 }
288
289 /// Open a file for writing, creating it if necessary.
290 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