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 Newsgroups: comp.lang.python Subject: Re: Deleting a file? References: 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 Date: Tue, 17 May 2011 11:39:37 +1000 Message-ID: <878vu6f6li.fsf@benfinney.id.au> 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=V^?kWSbEW9A[5UK?UNZ[SL`C\KgSGk8661HdkXW Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5545 "garyr" 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