[Python-ideas] Adding `pathlib.Path` method that would send file to recycle bin

random832 at fastmail.us random832 at fastmail.us
Fri Jan 2 14:36:24 CET 2015


On Thu, Jan 1, 2015, at 10:37, Andrew Barnert wrote:
> On Linux, it's not exactly like Mac, but it's similar. Linux has no
> notion of trash at all; desktop environments like GNOME do. And if you
> want it to work exactly like the way GNOME does, you call the API via
> GObject; otherwise you have to implement a complicated approximation
> based on rename that won't be fully functional.

There is an actual standard for the Trash system that all three major
desktop environments implement, so your "complicated approximation based
on rename" can actually be correct rather than an approximation. If
that's not exactly like how GNOME does it, then GNOME is incorrect.


More information about the Python-ideas mailing list