recursively removing files and directories
elicriffield at gmail.com
Mon Apr 9 15:11:47 EDT 2007
On Apr 9, 1:44 pm, "bahoo" <b83503... at yahoo.com> wrote:
> I found a message on Jan 16, 2006 regarding the same topic, except
> that I wanted to remove only certain files that satisfy the format
> "ABC_XXX_XXX.dat", but not the other files. Once the files are
> removed, if a folder becomes empty, I want to remove the folder as
> The solution to the Jan 16 2006 message required many lines of python
> code. I was wondering if there is a simpler solution to my problem at
> hand, perhaps by using more specialized functions?
for thisFile in fileList:
But thats just off the top of my head, so that mite not be exact.
More information about the Python-list