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

Function chown

src/fs/abs.rs:302–304  ·  view source on GitHub ↗
(path: P, owner: Option<Uid>, group: Option<Gid>)

Source from the content-addressed store, hash-verified

300#[cfg(not(target_os = "wasi"))]
301#[inline]
302pub fn chown<P: path::Arg>(path: P, owner: Option<Uid>, group: Option<Gid>) -> io::Result<()> {
303 path.into_with_c_str(|path| backend::fs::syscalls::chown(path, owner, group))
304}

Callers 1

test_fileFunction · 0.50

Calls 1

into_with_c_strMethod · 0.80

Tested by 1

test_fileFunction · 0.40