Find source files.
(mongodb_path)
| 21 | |
| 22 | |
| 23 | def source_files(mongodb_path): |
| 24 | """Find source files.""" |
| 25 | for root, dirs, files in os.walk(mongodb_path): |
| 26 | for filename in files: |
| 27 | # skip files in dbtests folder |
| 28 | if 'dbtests' in root: |
| 29 | continue |
| 30 | if filename.endswith(('.cpp', '.c', '.h')): |
| 31 | yield os.path.join(root, filename) |
| 32 | |
| 33 | |
| 34 | def get_all_versions(): |