Deleting a file?
Ben Finney
ben+python at benfinney.id.au
Mon May 16 21:39:37 EDT 2011
"garyr" <garyr at 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
More information about the Python-list
mailing list