(dilate_path, directory)
| 24 | |
| 25 | |
| 26 | def check_dir(dilate_path, directory): |
| 27 | errors = 0 |
| 28 | for file in os.listdir(directory): |
| 29 | path = os.path.join(directory, file) |
| 30 | if os.path.isdir(path): |
| 31 | errors += check_dir(dilate_path, path) |
| 32 | elif file.endswith(".png"): |
| 33 | errors += check_file(dilate_path, path) |
| 34 | return errors |
| 35 | |
| 36 | |
| 37 | def main(arguments): |