You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
There isn't really a good native solution for "remove all empty directories in this tree".
Describe the solution you'd like
A native rmdir state which can delete empty directories below a given root.
Describe alternatives you've considered
Usually this problem is solved with some Jinja gymnastics to find empty directories and pass to file.absent, but that can be dangerous if the find operation is too broad as file.absent essentially performs the equivalent of rm -rf
* add file.rmdir tests for original function
* update file.rmdir exec module for recursive operation and verbose output
* fixes#62178 add file.rmdir state
* add older_than capability to file.rmdir exec and state modules
* change test to use direct import of file module
* Revert "change test to use direct import of file module"
This reverts commit ff8c666.
* revert previous test modification and add import to win_file
* rename file.rmdir state to file.pruned
Is your feature request related to a problem? Please describe.
There isn't really a good native solution for "remove all empty directories in this tree".
Describe the solution you'd like
A native rmdir state which can delete empty directories below a given root.
Describe alternatives you've considered
Usually this problem is solved with some Jinja gymnastics to find empty directories and pass to
file.absent
, but that can be dangerous if the find operation is too broad asfile.absent
essentially performs the equivalent ofrm -rf
Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.
The text was updated successfully, but these errors were encountered: