There is a problem with subentries that have been trashed prior to the trashing of the folder:
1. If you restore the folder, the subentry should remain trashed.
2. If you purge the folder, what happens to the subentry? (OS X, for example, does not allow this since it only allows for empty of trash and does not allow for purging individual entries.)
- For Liferay, the subentries would be orphaned. Subsequent request to restore the subentry would prompt to move the subentry to a new folder (see
3. If you restore the subentry, where does the subentry go? (OS X actually has a bug here where if you try to restore the subentry, nothing happens.)
- For Liferay, we will not allow the option to restore the subentry but the option would be changed to move the subentry (again, see
Considering all the above, for now, we should remove the functionality of multiple purge/restores within the trash. The support of multiple purge/restores causes problems in other use cases. One example is the following scenario:
- File A and Folder B used to both be in Folder C, but now all three are independently in the trash.
- If all three were selected and restore, do you handle #3 in turn? If you did, you would move File A, Folder B, then come across Folder C and now have everything out of context.
- If you didn't, you would have to walk the entire folder/file/shortcut hierarchy to determine the relationships and restore in order.