Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Have a different confirmation for deleting a non-empty dir

Thanks for your post. This request has been added to tracker.
Guest

Have a different confirmation for deleting a non-empty dir

For example...

Deleting an empty dir wrote:

This directory is empty, remove dir? (can be undone, by creating the dir again)

<dir-name>

...&...

Deleting a non-empty dir wrote:

This directory is NOT EMPTY, remove dir & all its contents? (cannot be undone!)

<dir-name>

...or maybe...

Deleting a non-empty dir wrote:

This directory has <size> of data in it, remove dir & all its contents? (cannot be undone!)

<dir-name>

...<size>, for example, would say "100MB" or "100 bytes". There should be the option of disabling each confirmation separately, like allow removing an empty dir without confirmation (rmdir <dir>), but still confirm on deleting a non-empty dir (rm -r <dir>).