[Tutor] glob module

Isr Gish isrgish at fusemail.com
Tue Feb 3 22:47:47 EST 2004


I want to get a list of all files from a folder with a certain pattern.
But I want to look in sub folders also

Example:
Lets say I have this dir tree

Docs
    recipes
        new
        old
    help
        all
...
I want to find all files with "a*.txt" from whole tree of Docs how would I do that. I understand that I could iterate the whole tree. But what I would like to know, if it can be done, with the glob module.

Thanks for any help
Isr




More information about the Tutor mailing list