task_script_utils.check_file_type module#

check_file_type(filename: str, expected_type: str | list)[source]#

Checks if a given file has the type or types that are passed in

Parameters:
  • filename (str) – the filename in question

  • expected_type (t.Union[str, list]) – either a string with the expected

  • types (filetype or a list of strings with expected file) –