-
Notifications
You must be signed in to change notification settings - Fork 79
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
Check if lookupDir exists before iterating #1527
Conversation
std::filesystem::recursive_directory_iterator throws if the directory doesn't exist.
By the way, are you okay with me just sending fixes like these? It seemed to me like a quick and easy fix and for those, I tend to make PRs straight away without first making an issue with an exact explanation of the problem (and a reproducer). I wouldn't want to spam the repo with fixes that can't be reproduced by anyone else, so feel free to tell me if I should change my approach in any way. Thanks. |
Kudos, SonarCloud Quality Gate passed! |
Libosmscout is a library for its users. As such I definitely accept such patches, if they improve the overall codebase and its stability or resilliance. Or add features that make sense in the code base. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
I am more than happy with such merge requests ;-) I am creating issues just in case when I have no time for fix it right away. When it is simple like this one, there is no reason to waste time with describing problem in issue. Just my opinion. |
🎉 This issue has been resolved in |
std::filesystem::recursive_directory_iterator throws if the directory doesn't exist.