def __init__(self, directory: Union[(Path, str)], message='Input directory was not found.'):
    self.directory = directory
    self.message = message
    super().__init__(self.message)
def __init__(self, directory: Union[(Path, str)], message='Input directory was not found.'):
    self.directory = directory
    self.message = message
    super().__init__(self.message)