Fix restore anbd delete operations in trash bin

- Fix restore files from a sub-folder
- Fix delete files from a sub-folder
- Fix delete alll files from sub-folder

cc @PVince81 can you give it a try? Thanks!

fix #6006