Re: rmdir problem

2008-03-11 Thread royG
On Mar 11, 3:37 pm, Paul > Have a look at shutil.rmtree > thanks Paul RG -- http://mail.python.org/mailman/listinfo/python-list

Re: rmdir problem

2008-03-11 Thread Tim Golden
royG wrote: > hi > 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. > > def myfolderops(): > testdir='..\mytestdir' > #if dir exist remove it > if isdir(testdir): > rmdir

Re: rmdir problem

2008-03-11 Thread Paul Hankin
On Mar 11, 10:35 am, royG <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listin

rmdir problem

2008-03-11 Thread royG
hi 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. def myfolderops(): testdir='..\mytestdir' #if dir exist remove it if isdir(testdir): rmdir(testdir) #again create dire