About the sanitizer script, I need more information like your current situation (Are your objects still in the trash ?) and the situation you want to get back to.
A commit has been added to the community as mentioned in the issue.
I have further asked in the "issue" about the sanitiser, or at least the cleaner.
For those who are curious to see if they suffer from this problem.
Jump into your storage for your sites and do the following commands.
# This one lists all images with a trashed folder. find . -type f -wholename '*trashed*' | wc -l
# This one lists all images with more two or more trashed folders. find . -type f -wholename '*trashed/trashed*' | wc -l
I have asked if it is expected behaviour to have nested trashed folders.
Has anyone tried just deleting all folders with "trashed/trashed/"? and then doing a similiar command to the "ezimagefile" table to remove rows with filepath having "trashed/trashed/?