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

Function file_info_error_is_trustworthy

crates/vm/src/stdlib/nt.rs:506–519  ·  view source on GitHub ↗
(error: u32)

Source from the content-addressed store, hash-verified

504 }
505
506 fn file_info_error_is_trustworthy(error: u32) -> bool {
507 use windows_sys::Win32::Foundation;
508 matches!(
509 error,
510 Foundation::ERROR_FILE_NOT_FOUND
511 | Foundation::ERROR_PATH_NOT_FOUND
512 | Foundation::ERROR_NOT_READY
513 | Foundation::ERROR_BAD_NET_NAME
514 | Foundation::ERROR_BAD_NETPATH
515 | Foundation::ERROR_BAD_PATHNAME
516 | Foundation::ERROR_INVALID_NAME
517 | Foundation::ERROR_FILENAME_EXCED_RANGE
518 )
519 }
520
521 /// _testFileTypeByHandle - test file type using an open handle
522 fn _test_file_type_by_handle(

Callers 2

_test_file_type_by_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected