docs: def has_extensions(self, *exts):
          """Check if file has one of the extensions."""
          file_ext = splitext(self.filename)[1]
          file_ext = file_ext.lower()
  
          for e in exts:
              if file_ext == e:
                  return True
          return False