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

Function win32_xstat

crates/vm/src/windows.rs:88–94  ·  view source on GitHub ↗

win32_xstat in cpython

(path: &OsStr, traverse: bool)

Source from the content-addressed store, hash-verified

86
87// win32_xstat in cpython
88pub fn win32_xstat(path: &OsStr, traverse: bool) -> std::io::Result<StatStruct> {
89 let mut result = win32_xstat_impl(path, traverse)?;
90 // ctime is only deprecated from 3.12, so we copy birthtime across
91 result.st_ctime = result.st_birthtime;
92 result.st_ctime_nsec = result.st_birthtime_nsec;
93 Ok(result)
94}
95
96fn is_reparse_tag_name_surrogate(tag: u32) -> bool {
97 (tag & 0x20000000) > 0

Callers 4

_test_file_type_by_nameFunction · 0.85
nextMethod · 0.85
stat_innerFunction · 0.85

Calls 1

win32_xstat_implFunction · 0.85

Tested by

no test coverage detected