Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5546
| References | <iqsdtn$va2$1@speranza.aioe.org> |
|---|---|
| Date | 2011-05-16 23:06 -0400 |
| Subject | Re: Deleting a file? |
| From | Jerry Hill <malaclypse2@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1654.1305601607.9059.python-list@python.org> (permalink) |
On Mon, May 16, 2011 at 5:23 PM, garyr <garyr@fidalgo.net> wrote: > A file can be deleted by opening it with mode os.O_TEMPORARY and then > closing it. How can a file be moved to the Recycle Bin, a la Windows? I see a send2trash module (http://hg.hardcoded.net/send2trash and http://www.hardcoded.net/articles/send-files-to-trash-on-all-platforms.htm) The source code looks pretty straightforward, but I don't think there's anything in the standard library that does that. -- Jerry
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Deleting a file? "garyr" <garyr@fidalgo.net> - 2011-05-16 14:23 -0700
Re: Deleting a file? Ben Finney <ben+python@benfinney.id.au> - 2011-05-17 11:39 +1000
Re: Deleting a file? Jerry Hill <malaclypse2@gmail.com> - 2011-05-16 23:06 -0400
Re: Deleting a file? "garyr" <garyr@fidalgo.net> - 2011-05-17 07:43 -0700
csiph-web