Re: recursively remove all the directories and files which begin with '.'

2010-05-16 Thread Walter Wefft
Irmen de Jong wrote: On 16-5-2010 19:41, Sean DiZazzo wrote: On May 14, 8:27 am, albert kao wrote: On May 14, 11:01 am, J wrote: On Fri, May 14, 2010 at 10:53, albert kao wrote: C:\python>rmdir.py C:\test\com.comp.hw.prod.proj.war\bin ['.svn', 'com'] d .svn dotd C:\test\com.comp.hw.pr

Re: recursively remove all the directories and files which begin with '.'

2010-05-16 Thread Irmen de Jong
On 16-5-2010 19:41, Sean DiZazzo wrote: On May 14, 8:27 am, albert kao wrote: On May 14, 11:01 am, J wrote: On Fri, May 14, 2010 at 10:53, albert kao wrote: C:\python>rmdir.py C:\test\com.comp.hw.prod.proj.war\bin ['.svn', 'com'] d .svn dotd C:\test\com.comp.hw.prod.proj.war\bin\.svn T

Re: recursively remove all the directories and files which begin with '.'

2010-05-16 Thread Sean DiZazzo
On May 14, 8:27 am, albert kao wrote: > On May 14, 11:01 am, J wrote: > > > > > On Fri, May 14, 2010 at 10:53, albert kao wrote: > > > > C:\python>rmdir.py > > > C:\test\com.comp.hw.prod.proj.war\bin > > > ['.svn', 'com'] > > > d .svn > > > dotd C:\test\com.comp.hw.prod.proj.war\bin\.svn > > > T

Re: recursively remove all the directories and files which begin with '.'

2010-05-14 Thread albert kao
On May 14, 11:01 am, J wrote: > On Fri, May 14, 2010 at 10:53, albert kao wrote: > > > C:\python>rmdir.py > > C:\test\com.comp.hw.prod.proj.war\bin > > ['.svn', 'com'] > > d .svn > > dotd C:\test\com.comp.hw.prod.proj.war\bin\.svn > > Traceback (most recent call last): > >  File "C:\python\rmdir.

Re: recursively remove all the directories and files which begin with '.'

2010-05-14 Thread J
On Fri, May 14, 2010 at 10:53, albert kao wrote: > > C:\python>rmdir.py > C:\test\com.comp.hw.prod.proj.war\bin > ['.svn', 'com'] > d .svn > dotd C:\test\com.comp.hw.prod.proj.war\bin\.svn > Traceback (most recent call last): >  File "C:\python\rmdir.py", line 14, in >    rmtree(os.path.join(curd

recursively remove all the directories and files which begin with '.'

2010-05-14 Thread albert kao
How do I recursively remove all the directories and files which begin with '.'? My test program rmdir.py does not do the job yet. Please help. [code] #!c:/Python31/python.exe -u import os from shutil import * root = "C:\\test\\com.comp.hw.prod.proj.war\\bin" for curdir, di