On 23 November 2010 09:26, Martin Lundberg <[email protected]> wrote: > It does not seem to support the ** wildcard? It will recursively seek > for files matching a pattern like *.js but it won't support > /var/name/**/*.js as root, will it?
I did say roughly. ;-) You'd need to do:
for filename in locate("*.js", "/var/name/"):
print filename
Adding support for ** is left as an exercise for the reader.
--
Cheers,
Simon B.
--
http://mail.python.org/mailman/listinfo/python-list
