Making os.unlink() act like "rm -f"

Godson Gera godson.g at gmail.com
Sat Dec 11 12:31:11 EST 2010


On Sat, Dec 11, 2010 at 10:34 PM, Roy Smith <roy at panix.com> wrote:

> os.unlink("file", ignore=True)
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Take a look at shutil.rmtree
http://docs.python.org/library/shutil.html?highlight=shutil#shutil.rmtree


-- 
Thanks & Regards,
Godson Gera
Python Consultant India <http://blog.godson.in>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101211/f7f185f2/attachment-0001.html>


More information about the Python-list mailing list