Re: Remove all directories using wildcard

2011-03-19 Thread Rikishi42
On 2011-03-18, JSkinn3 wrote: > I'm new to python and I am trying to figure out how to remove all sub > directories from a parent directory using a wildcard. For example, > remove all sub directory folders that contain the word "PEMA" from the > parent directory "C:\Data". > > I've trying to use

RE: Remove all directories using wildcard

2011-03-18 Thread Andreas Tawn
> I'm new to python and I am trying to figure out how to remove all sub > directories from a parent directory using a wildcard. For example, > remove all sub directory folders that contain the word "PEMA" from the > parent directory "C:\Data". > > I've trying to use os.walk with glob, but I'm not

Re: Remove all directories using wildcard

2011-03-18 Thread Tim Golden
On 18/03/2011 16:41, JSkinn3 wrote: I'm new to python and I am trying to figure out how to remove all sub directories from a parent directory using a wildcard. For example, remove all sub directory folders that contain the word "PEMA" from the parent directory "C:\Data". I've trying to use os.w