Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5545
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.247.MISMATCH!news-out.readnews.com!transit3.readnews.com!indigo.octanews.net!news-out.octanews.net!mauve.octanews.net!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail |
|---|---|
| From | Ben Finney <ben+python@benfinney.id.au> |
| Newsgroups | comp.lang.python |
| Subject | Re: Deleting a file? |
| References | <iqsdtn$va2$1@speranza.aioe.org> |
| X-Public-Key-ID | 0xAC128405 |
| X-Public-Key-Fingerprint | 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 |
| X-Public-Key-URL | http://www.benfinney.id.au/contact/bfinney-pubkey.asc |
| X-Post-From | Ben Finney <bignose+hates-spam@benfinney.id.au> |
| Date | Tue, 17 May 2011 11:39:37 +1000 |
| Message-ID | <878vu6f6li.fsf@benfinney.id.au> (permalink) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
| Cancel-Lock | sha1:KP+bUpKhqvtxrVHIW6GSuivYuVk= |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Lines | 17 |
| Organization | Unlimited download news at news.astraweb.com |
| NNTP-Posting-Host | d94ef9a7.news.astraweb.com |
| X-Trace | DXC=<NShmhP8bOV?W?WaA<e5APL?0kYOcDh@ZXb<8`kRh<;PB2^i4h45i\Z]G;2>V^?kWSbEW9A[5UK?UNZ[SL`C\KgSGk8661HdkXW |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5545 |
Show key headers only | View raw
"garyr" <garyr@fidalgo.net> writes: > A file can be deleted by opening it with mode os.O_TEMPORARY and then > closing it. Much simpler: ‘os.remove(path)’. > How can a file be moved to the Recycle Bin, a la Windows? That's not deleting it (as you probably know), so you might better change the subject field for the thread. -- \ “Unix is an operating system, OS/2 is half an operating system, | `\ Windows is a shell, and DOS is a boot partition virus.” —Peter | _o__) H. Coffin | Ben Finney
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