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

Function lstat

crates/vm/src/stdlib/os.rs:1468–1474  ·  view source on GitHub ↗
(
        file: OsPath,
        dir_fd: DirFd<'_, { STAT_DIR_FD as usize }>,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

1466
1467 #[pyfunction]
1468 fn lstat(
1469 file: OsPath,
1470 dir_fd: DirFd<'_, { STAT_DIR_FD as usize }>,
1471 vm: &VirtualMachine,
1472 ) -> PyResult {
1473 stat(file.into(), dir_fd, FollowSymlinks(false), vm)
1474 }
1475
1476 fn curdir_inner(vm: &VirtualMachine) -> PyResult<PathBuf> {
1477 env::current_dir().map_err(|err| err.into_pyexception(vm))

Callers 3

realpathFunction · 0.85
statMethod · 0.85
stat_innerFunction · 0.85

Calls 2

statFunction · 0.85
FollowSymlinksClass · 0.85

Tested by

no test coverage detected