(filename:str)
| 112 | |
| 113 | |
| 114 | def accept_filename(filename:str): |
| 115 | if '.' not in filename: |
| 116 | return False |
| 117 | ext = filename[filename.rfind('.'):] |
| 118 | if ext == '.proto' and ('--protobuf' in sys.argv): |
| 119 | print('accept_filename:' + filename) |
| 120 | return True |
| 121 | return ext in ('.C', '.c', '.H', '.h', '.cc', |
| 122 | '.cpp', '.cxx', '.c++', '.hpp', '.tpp', '.t++') |
| 123 | |
| 124 | |
| 125 | def removeLargeFiles(path): |