Glob in python which supports the ** wildcard

Martin Lundberg martin.lundberg at gmail.com
Mon Nov 22 22:43:34 CET 2010


Hi,

I want to be able to let the user enter paths like this:

apps/name/**/*.js

and then find all the matching files in apps/name and all its
subdirectories. However I found out that Python's glob function
doesn't support the recursive ** wildcard. Is there any 3rd party glob
function which do support **?

Regards,

Martin Lundberg




More information about the Python-list mailing list