Remove all directories using wildcard

JSkinn3 skinner_1377 at hotmail.com
Fri Mar 18 12:41:07 EDT 2011


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 sure if this is the
right path to take.

Thanks for any suggestions!



More information about the Python-list mailing list