rmdir problem

Paul Hankin paul.hankin at gmail.com
Tue Mar 11 11:37:53 CET 2008


On Mar 11, 10:35 am, royG <roygeor... at gmail.com> wrote:
> i am checking if a directory exists and if it does i want to delete it
> and its contents.then i want to create the directory before creating
> files in it.

Have a look at shutil.rmtree

--
Paul Hankin



More information about the Python-list mailing list