Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5569
| From | "garyr" <garyr@fidalgo.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Deleting a file? |
| Date | 2011-05-17 07:43 -0700 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <iqu1ql$i5g$1@speranza.aioe.org> (permalink) |
| References | <iqsdtn$va2$1@speranza.aioe.org> <mailman.1654.1305601607.9059.python-list@python.org> |
Jerry, There was an error during the install but only required a minor change to an __init__.py file to correct. Works great. Just what I was looking for. Many thanks! Gary "Jerry Hill" <malaclypse2@gmail.com> wrote in message news:mailman.1654.1305601607.9059.python-list@python.org... > 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 | 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