mirror of https://github.com/patacrep/patacrep.git
Louis
12 years ago
6 changed files with 27 additions and 9 deletions
@ -0,0 +1,13 @@ |
|||
#!/usr/bin/python |
|||
# -*- coding: utf-8 -*- |
|||
# |
|||
|
|||
import fnmatch |
|||
import os |
|||
|
|||
def recursiveFind(root_directory, pattern): |
|||
matches = [] |
|||
for root, dirnames, filenames in os.walk(root_directory): |
|||
for filename in fnmatch.filter(filenames, pattern): |
|||
matches.append(os.path.join(root, filename)) |
|||
return matches |
Loading…
Reference in new issue