Skip to content

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

Open
@GiantTreeLP

Description

@GiantTreeLP

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    s: needs triageIssue waiting for triaget: feature requestA request of a feature someone wants to see in a future release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions