[Python-ideas] Adding `pathlib.Path` method that would send file to recycle bin
dw+python-ideas at hmmz.org
Mon Jan 5 11:38:29 CET 2015
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.
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.
> Python-ideas mailing list
> Python-ideas at python.org
> Code of Conduct: http://python.org/psf/codeofconduct/
More information about the Python-ideas