trash, make it possible to select folders

Make it possible to select folders.

cc @PVince81