
I have no problem with this being included somehow in the standard library, but pathlib to me is all about the filesystem, whereas (as others have pointed out), the Recycle Bin and associated concepts on other OS relate pretty uniformly to the OS shell. There are many shell-related concepts that could be nicely exposed, but again I don't think any of them belong in pathlib. For example, labels/tags, owner application, icon, visibility flags, etc. David On Mon, Dec 29, 2014 at 06:54:46PM +0200, Ram Rachum 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.
Thanks, Ram.
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/