MCPcopy Index your code
hub / github.com/RustPython/RustPython / lchown

Function lchown

crates/vm/src/stdlib/posix.rs:660–669  ·  view source on GitHub ↗
(path: OsPath, uid: isize, gid: isize, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

658 #[cfg(not(target_os = "redox"))]
659 #[pyfunction]
660 fn lchown(path: OsPath, uid: isize, gid: isize, vm: &VirtualMachine) -> PyResult<()> {
661 chown(
662 OsPathOrFd::Path(path),
663 uid,
664 gid,
665 DirFd::default(),
666 FollowSymlinks(false),
667 vm,
668 )
669 }
670
671 #[cfg(not(target_os = "redox"))]
672 #[pyfunction]

Callers

nothing calls this directly

Calls 3

FollowSymlinksClass · 0.85
chownFunction · 0.70
PathClass · 0.50

Tested by

no test coverage detected