[Python-ideas] Adding `pathlib.Path` method that would send file to recycle bin
solipsis at pitrou.net
Mon Dec 29 18:53:26 CET 2014
On Mon, 29 Dec 2014 18:54:46 +0200
Ram Rachum <ram at rachum.com> wrote:
> Hi guys,
> I want to have a method of `pathlib.Path` that would send a file to the
> recycle bin. (i.e. soft delete.)
> What do you think about adding this?
> I see there's a PyPI package `Send2Trash` that does this, but it would be
> nice if this was in the standard library.
I think the corresponding low-level function to the os module would be
a good start (the hard part is probably to write the cross-platform
More information about the Python-ideas