-
Notifications
You must be signed in to change notification settings - Fork 757
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
[class library] new _FileDeleteAll primitive #3921
[class library] new _FileDeleteAll primitive #3921
Conversation
Thanks @mkb218 ! This code is clear and stylistically perfect. My concern with this approach is that any error message coming from
I think this addition is fine without a test; we currently don't test filesystem operations and I think unless we run into anything significantly annoying, it's more trouble than it's worth. So I've marked this as OK on the test requirement. Please also add documentation in If you have any questions, let me know! |
d389566
to
db41f66
Compare
I think I've implemented your recommendations, but now this method's return value is inconsistent with |
@mkb218 That's fine, thanks for the changes! Could you also update the documentation with information about the error throwing conditions? |
Overall looks good, but I think you accidentally committed some changes to hidapi as well, can you please revert that and then I'll approve this? |
Oops! Hang on while I try to get git to forget about that. |
OK, I think this is ready! |
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.
thanks! sorry, but could you rebase to get rid of the revert commits?
No problem! I'll just squash it into a single commit? |
yes, i think that would be appropriate here. |
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.
thanks!
return error; | ||
|
||
const bfs::path& p = SC_Codecvt::utf8_str_to_path(filename); | ||
if (bfs::remove_all(p) > 0) { |
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.
Didn't realize this returns a uint - I was reading the doc for remove
by mistake!
4b1a2dc
to
c9d9f21
Compare
@snappizz should be all set now |
thank you! |
Purpose and Motivation
Recursive delete of a pathname. Fixes #3651.
Types of changes
Checklist
Updated documentation, if necessary
This PR is ready for review