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

Function _path_islink

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

Source from the content-addressed store, hash-verified

815 /// return _testFileType(path, PY_IFLNK)
816 #[pyfunction]
817 fn _path_islink(args: PathArg, vm: &VirtualMachine) -> bool {
818 args.to_path_or_fd(vm)
819 .is_some_and(|p| _test_file_type(&p, PY_IFLNK))
820 }
821
822 /// Check if a path is a junction (mount point).
823 /// return _testFileType(path, PY_IFMNT)

Callers

nothing calls this directly

Calls 2

_test_file_typeFunction · 0.85
to_path_or_fdMethod · 0.80

Tested by

no test coverage detected