[Tutor] glob module

David Rock david at graniteweb.com
Wed Feb 4 00:05:48 EST 2004


Isr Gish wrote:
> 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
> ...

You are probably looking for something like this:
http://www.python.org/doc/current/lib/os-file-dir.html#l2h-1473

-- 
David Rock
david at graniteweb.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://mail.python.org/pipermail/tutor/attachments/20040203/e1994d0f/signature.bin


More information about the Tutor mailing list