Returns True if the file extension is allowed to be updated, False otherwise.
(self)
| 75 | |
| 76 | |
| 77 | def one_of_replace_extensions(self): |
| 78 | """Returns True if the file extension is allowed to be updated, False otherwise.""" |
| 79 | for ext in self.REPLACE_EXTENSIONS: |
| 80 | if self.filename.endswith(ext): |
| 81 | return True |
| 82 | |
| 83 | return False |
| 84 | |
| 85 | def is_excluded(self): |
| 86 | for d in self.EXCLUDE_FOLDERS: |