Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using std::filesystem::exists(std::filesystem::path) does not catch operating system level errors #1083

Open
imikejackson opened this issue Sep 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@imikejackson
Copy link
Contributor

That method can throw exceptions from the operating system level. All uses of this signature should be replaced with the 2 argument signature and appropriate code changes to effectively now use that signature. https://en.cppreference.com/w/cpp/filesystem/exists

The 2 argument does not throw an exception but instead encodes the underlying operating system error into teh "std::error_code" object.

@imikejackson imikejackson added bug Something isn't working enhancement New feature or request labels Sep 24, 2024
@JDuffeyBQ JDuffeyBQ self-assigned this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants