I know how the Trash
folder in Linux is constructed.
So it wouldn't be that hard to manipulate it directly with some lowlevel filesystem commands.
I know the trash-cli
package from Ubuntu GNU/Linux, too.
What would be a pythonic solution to clean the Trash folder on Linux without the two solutions above?
The background of my question:
I know that some file-managers don't use the trash-cli
package programs. How do they do this? Is there a python package or a library (gtk, qt, ...) for that?
The "trash folder" is not really a part of Linux itself. It is generally part of a desktop environment built on top of Linux.
Basically it is a specification from freedesktop.org on how "trash can" implementations should work.