MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / chmod

Function chmod

src/fs/abs.rs:60–62  ·  view source on GitHub ↗
(path: P, mode: Mode)

Source from the content-addressed store, hash-verified

58#[cfg(not(target_os = "wasi"))]
59#[inline]
60pub fn chmod<P: path::Arg>(path: P, mode: Mode) -> io::Result<()> {
61 path.into_with_c_str(|path| backend::fs::syscalls::chmod(path, mode))
62}
63
64/// `stat(path)`—Queries metadata for a file or directory.
65///

Callers 1

test_chmodFunction · 0.50

Calls 1

into_with_c_strMethod · 0.80

Tested by 1

test_chmodFunction · 0.40