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

Function _path_exists

crates/vm/src/stdlib/nt.rs:833–836  ·  view source on GitHub ↗
(args: PathArg, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

831 /// return _testFileExists(path, TRUE)
832 #[pyfunction]
833 fn _path_exists(args: PathArg, vm: &VirtualMachine) -> bool {
834 args.to_path_or_fd(vm)
835 .is_some_and(|p| _test_file_exists(&p, true))
836 }
837
838 /// Check if a path exists (does not follow symlinks).
839 /// return _testFileExists(path, FALSE)

Callers

nothing calls this directly

Calls 2

_test_file_existsFunction · 0.85
to_path_or_fdMethod · 0.80

Tested by

no test coverage detected