Skip to content
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

Add a method to delete entire directory trees from templates #1198

Open
1 task done
GiantTreeLP opened this issue Apr 15, 2023 · 0 comments · May be fixed by #1199
Open
1 task done

Add a method to delete entire directory trees from templates #1198

GiantTreeLP opened this issue Apr 15, 2023 · 0 comments · May be fixed by #1199
Labels
s: needs triage Issue waiting for triage t: feature request A request of a feature someone wants to see in a future release.

Comments

@GiantTreeLP
Copy link
Member

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

  • Yes, this issue is unique. There are no similar issues.
@GiantTreeLP GiantTreeLP added s: needs triage Issue waiting for triage t: feature request A request of a feature someone wants to see in a future release. labels Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s: needs triage Issue waiting for triage t: feature request A request of a feature someone wants to see in a future release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant