(pattern)
| 842 | |
| 843 | |
| 844 | def delete_files_by_pattern(pattern): |
| 845 | assert len(pattern) > 2 |
| 846 | print("[build.py] Delete files by pattern: {pattern}" |
| 847 | .format(pattern=pattern)) |
| 848 | files = glob.glob(pattern) |
| 849 | for f in files: |
| 850 | os.remove(f) |
| 851 | print("[build.py] Removed {0} files".format(len(files))) |
| 852 | |
| 853 | |
| 854 | def delete_directories_by_pattern(pattern): |
no outgoing calls
no test coverage detected