(paths, pattern)
| 76 | |
| 77 | |
| 78 | def CollectFiles(paths, pattern): |
| 79 | files = [] |
| 80 | for path in paths: |
| 81 | if type(pattern) == type(''): |
| 82 | files = files + glob.glob(path + '/' + pattern) |
| 83 | else: |
| 84 | for item in pattern: |
| 85 | # print('--> %s' % (path + '/' + item)) |
| 86 | files = files + glob.glob(path + '/' + item) |
| 87 | |
| 88 | return sorted(files) |
| 89 | |
| 90 | |
| 91 | def CollectAllFilesinPath(path, pattern): |