Skip to content

Feature Request: Better error message if delete a not empty folder #261

@BenRoe

Description

@BenRoe

Is your feature request related to a problem? Please describe.
If i try to delete a not empty folder in "Content" overview, i get the following error.

ERROR|handler_api.c:2267:handleApiFileDelete| Error deleting file '/9BD07122' -> '/teddycloud/data/content/default/9BD07122', error Generic error code [1]

First i thought it's a file owner problem.
Someone on the Telegram channel noted, that recursive delete is disabled by default.
The error message above does not explain that.

Describe the solution you'd like
Mention that in the error message, that the folder is not empty.

Describe alternatives you've considered
Allow recursive deletion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions