mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +03:00
8d4adad953
Usually opening a file handle with access set to metadata only will always succeed, even if the file is locked. However some special system files, such as `C:\hiberfil.sys`, are locked by the system in a way that denies even that. So as a fallback we try reading the cached metadata from the directory.