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

Function _path_isfile

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

Source from the content-addressed store, hash-verified

807 /// return _testFileType(path, PY_IFREG)
808 #[pyfunction]
809 fn _path_isfile(args: PathArg, vm: &VirtualMachine) -> bool {
810 args.to_path_or_fd(vm)
811 .is_some_and(|p| _test_file_type(&p, PY_IFREG))
812 }
813
814 /// Check if a path is a symbolic link.
815 /// return _testFileType(path, PY_IFLNK)

Callers

nothing calls this directly

Calls 2

_test_file_typeFunction · 0.85
to_path_or_fdMethod · 0.80

Tested by

no test coverage detected