Add a method to delete entire directory trees from templates #1198
Labels
s: needs triage
Issue waiting for triage
t: feature request
A request of a feature someone wants to see in a future release.
Describe the new feature
This new feature should encompass a method called
deleteDirectory
that can be used to delete an entire directory including all its contained files from a given template.Why do you need this feature?
Currently it is only possible to delete singular files from a template.
This works fine but may leave empty and unused directories behind.
In addition to that, deleting entire directory trees is very inefficient when deleting each file separately.
Alternatives
The only other way of removing the remaining directories would be to manually delete those files.
Developers of modules cannot do that and would need to instruct an administrator to do this. This would leave developers at the mercy of attentive administrators/users.
Other
Requested on Discord by the following messages: https://discord.com/channels/325362837184577536/818777626663321671/1096849346735120434
I am currently working on this feature request.
Issue uniqueness
The text was updated successfully, but these errors were encountered: