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

Markus Unterwaditzer markus at unterwaditzer.net
Thu Jan 1 17:00:52 CET 2015

On Thu, Jan 01, 2015 at 04:37:52PM +0100, Andrew Barnert wrote:
> On Jan 1, 2015, at 11:37, Ram Rachum <ram at rachum.com> wrote:
> > Hi everyone,
> > 
> > I'm a complete ignoramus when it comes to Mac, so I can't say anything
> > about that, but as I understand the discussion, there are problems with
> > implementing this on Mac. Okay. So maybe this should be available only on
> > Windows and Linux? (If it's not a problem to do on Linux.)
> 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.

Actually it seems that the trash location is standardized by the XDG Desktop


More information about the Python-ideas mailing list