Survey -- Move To Trash function in Python?

Dave Farrance DaveFarrance at OMiTTHiSyahooANDTHiS.co.uk
Thu May 14 13:32:19 EDT 2015


Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:

>I'd like to do a little survey, and get a quick show of hands.
>
>How many people have written GUI or text-based applications or scripts where
>a "Move file to trash" function would be useful?
>
>Would you like to see that in the standard library, even if it meant that
>the library had feature-freeze and could gain no more functionality?

It's bad enough when things are filesystem-dependent but this is
OS-dependent or even desktop-version-dependent in the case of Linux
distros, so not easy.

E.g. in the case of KDE4, the command-line is:
$ kioclient move <filename> trash:/

...and for KDE3 it was:
$ kfmclient  move <filename> trash:/



More information about the Python-list mailing list