Survey -- Move To Trash function in Python?

Terry Reedy tjreedy at udel.edu
Thu May 14 22:27:00 EDT 2015


On 5/14/2015 10:03 PM, Steven D'Aprano wrote:

> The idea is that the library will hide that complexity from you, so your
> python code will just say:
>
> import shutil
> shutil.move_to_trash(filename)

Since 'trash' is (or is used as) a verb, shutil.trash(filename)
seems sufficient.

> and it will work on any supported OS, filesystem and desktop.

This seems like a plausible enhancement.

-- 
Terry Jan Reedy




More information about the Python-list mailing list