Why std::filesystem::exists returns false for c:\hiberfil.sys #2365
-
This behavior is at least strange. The file does exist, but has quite limited permissions. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
May be because you write |
Beta Was this translation helpful? Give feedback.
-
Nope. You may try. Approximately:
error_code is set to 32 with message() ~ "no permission ... the file in use" |
Beta Was this translation helpful? Give feedback.
-
Yes, you are right: we can treat ERROR_SHARING_VIOLATION as path existence.
|
Beta Was this translation helpful? Give feedback.
-
Thanks - this sounds like a bug, so we'll convert this into an issue! |
Beta Was this translation helpful? Give feedback.
Thanks - this sounds like a bug, so we'll convert this into an issue!