(path, names, exclDirs = [])
| 76 | return out |
| 77 | |
| 78 | def findFilesExt(path, names, exclDirs = []): |
| 79 | out = [] |
| 80 | for root, dirs, files in os.walk(path, topdown=True): |
| 81 | dirs[:] = [d for d in dirs if d not in exclDirs] |
| 82 | for file in files: |
| 83 | for name in names: |
| 84 | if file.endswith(name): |
| 85 | out.append(os.path.join(root, file)) |
| 86 | return out |
| 87 | |
| 88 | def rmFolders(path, matching): |
| 89 | for folder in findDirs(path, matching): |
no outgoing calls
no test coverage detected