heribertolugo / FileList

List all files in a given directory, and provide the option to copy or move selected files.
1 stars 0 forks source link

Deleting Contents in TreeViewNode #49

Open heribertolugo opened 4 years ago

heribertolugo commented 4 years ago

when selecting all files within a TreeViewNode, the parent node is also selected (since all are selected). consider removing this feature. during this scenario, if the delete option is selected, all directories contained within and the parent directory are also deleted. An option should be provided to specify if the parent directory should be deleted and an option to specify if child directories should be deleted. Also, if directory is empty after deleting files, should directory be deleted.

there are situations in which all selected nodes might be chosen for deletion, but it is not representative of all the directories contents (as in when using filters). Since all child nodes are selected, the parent is auto-selected and will be considered for deletion. This is undesirable behavior and it is not expected, as one would not know if there are in fact other files in the directory during the deletion verification.