capella-collab-manager icon indicating copy to clipboard operation
capella-collab-manager copied to clipboard

Delete files in file browser

Open MoritzWeber0 opened this issue 1 year ago • 2 comments

As alternative to complex file deletion workflows via session containers, it shall be possible to delete single files and empty directories from the file browser. To prevent unintended deletions, it shall not be possible to delete directories, which contain files.

MoritzWeber0 avatar Jan 23 '24 09:01 MoritzWeber0

To prevent unintended deletions, it shall not be possible to delete directories, which contain files.

For cases of non-empty directories I'd clearly prefer an extra question dialog like "Do you really want to delete the directory '/path/to/dir' which contains x file(s)?" instead of being forced to delete file by file.

Image a user exported all representations into a directory and would be forced to delete hundreds of diagrams.

jamilraichouni avatar Jun 19 '24 07:06 jamilraichouni

To prevent unintended deletions, it shall not be possible to delete directories, which contain files.

For cases of non-empty directories I'd clearly prefer an extra question dialog like "Do you really want to delete the directory '/path/to/dir' which contains x file(s)?" instead of being forced to delete file by file.

Image a user exported all representations into a directory and would be forced to delete hundreds of diagrams.

Yes, that makes sense. A dialog can also prevent unintended deletions and is less annoying than deletion of a ton of files manually.

MoritzWeber0 avatar Jun 19 '24 08:06 MoritzWeber0