def METHOD_NAME(dir, soft=False):
    try:
        return os.listdir(dir)
    except FileNotFoundError:
        if soft:
            return []
        print(f'ERROR: Directory "{dir}" not found')
        sys.exit(1)