def check_directory()

in scripts/dashboard/validate_dashboards_format.py [0:0]


def check_directory(directory, path_map):
  '''Parent function that calls top level processing and checking functions
    
    Functions are order-dependant as the path_map dictionary is mutated by each function.'''

  # Process json files into path map
  map_json_files(directory, path_map)

  # Metadata file check
  check_metadata(directory, path_map)

  # json file check
  check_json_in_metadata(directory, path_map)