third_party/blink/tools/blinkpy/common/find_files.py
def _normalized_find(filesystem, paths, skipped_directories, file_filter,
                     directory_sort_key):
    """Finds the set of tests under the given list of paths."""
    paths_to_walk = itertools.chain(*(filesystem.glob(path) for path in paths))

    def sort_by_directory_key(files_list):
        if directory_sort_key:
            files_list.sort(key=directory_sort_key)
        return files_list

    return itertools.chain(*(sort_by_directory_key(
        filesystem.files_under(path, skipped_directories, file_filter))
                             for path in paths_to_walk))
Finds the set of tests under the given list of paths.
Finds the set of tests under the given list of paths.
Finds the set of tests under the given list of paths .
def _normalized_find(filesystem, paths, skipped_directories, file_filter,
                     directory_sort_key):
    paths_to_walk = itertools.chain(*(filesystem.glob(path) for path in paths))
    def sort_by_directory_key(files_list):
        if directory_sort_key:
            files_list.sort(key=directory_sort_key)
        return files_list
    return itertools.chain(*(sort_by_directory_key(
        filesystem.files_under(path, skipped_directories, file_filter))
                             for path in paths_to_walk))
def _normalized_find ( filesystem , paths , skipped_directories , file_filter , directory_sort_key ) : paths_to_walk = itertools . chain ( * ( filesystem . glob ( path ) for path in paths ) ) def sort_by_directory_key ( files_list ) : if directory_sort_key : files_list . sort ( key = directory_sort_key ) return files_list return itertools . chain ( * ( sort_by_directory_key ( filesystem . files_under ( path , skipped_directories , file_filter ) ) for path in paths_to_walk ) )
Finds the set of tests under the given list of paths.
Finds the set of tests under the given list of paths .
"""Finds the set of tests under the given list of paths."""
filesystem
paths
skipped_directories
file_filter
directory_sort_key