
Dec. 29, 2014
5:53 p.m.
On Mon, 29 Dec 2014 18:54:46 +0200 Ram Rachum <ram@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 code, anyway). Regards Antoine.