Survey -- Move To Trash function in Python?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu May 14 21:37:30 EDT 2015


On Fri, 15 May 2015 01:49 am, Grant Edwards wrote:

> On 2015-05-14, 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?
> 
> How would you even define what "move to trash" means in a standard
> way?

There are standard locations for the trash on Linux, Windows and OS X.

I presume that there are standard locations on the other main OSes, such as
Android, iOS, any Unix which supports the Free Desktop Standard(?), etc.
Anything else can either remain unsupported, or can use a caller-defined
location.


> Even withing the limited context of something like a mail client, it's
> meaning varies depending on mail store format or which IMAP server
> you're talking to.
> 
> Or are you assuming the only thing that can be "moved to trash" is a
> file?

I'm specifically referring to files, hence "move FILE to trash".


-- 
Steven




More information about the Python-list mailing list