-
Notifications
You must be signed in to change notification settings - Fork 21
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
Expose std::filesystem::remove_all functionality to lua side as an argument for RemoveDir #63
Expose std::filesystem::remove_all functionality to lua side as an argument for RemoveDir #63
Conversation
Current implementation of RemoveDir does not allow for removal of direcoties with content. This commit adds a recursive boolean parameter to RemoveDir allowing for recursive removal of directories and their contents. PathOfBuildingCommunity/PathOfBuilding#8197
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.
Can we have the second parameter default to false
here and not require both parameters?
@Wires77 That's how it works (should, been a while). The param assert is only triggered if n > 1 and |
I was looking at the first usage of Lassert() and thinking that condition would fail if a second parameter wasn't passed in. I can build it test it myself to confirm though |
Just noting for posterity. I was wrong and i guess i designed the API to require the 2nd param for this func. Discussion moved to Discord. |
Current implementation of RemoveDir does not allow for removal of directories with content. This commit adds a recursive boolean parameter to RemoveDir allowing for recursive removal of directories and their contents.
See PathOfBuildingCommunity/PathOfBuilding#8197 for more discussion and potential use case.