On 22 November 2010 21:43, Martin Lundberg <martin.lundb...@gmail.com> wrote: > 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 **?
This does roughly what you want: http://code.activestate.com/recipes/499305-locating-files-throughout-a-directory-tree/ -- Cheers, Simon B. -- http://mail.python.org/mailman/listinfo/python-list