def scan_path(root='.', recurse=False, pattern='*'):
    '''
    Runs a loop over the :doc:`Walk<relpy.utils.Walk>` Generator
    to find all file paths in the root directory with the given
    pattern. If recurse is *True*: matching paths are identified
    for all sub directories.

    Parameters
    ----------
    root : string (default is *'.'*)
        Path for the root folder to look in.
    recurse : bool (default is *True*)
        If *True*, will also look in the subfolders.
    pattern : string (default is :emphasis:`'*'`, which means all the files are concerned)
        The pattern to look for in the files' name.

    Returns
    -------
    path_list : list
        list of all the matching files paths.

    '''

    path_list = []
    for path in Walk(root=root, recurse=recurse, pattern=pattern):
        path_list.append(path)
    return path_list
def scan_path(root='.', recurse=False, pattern='*'):
    '''
    Runs a loop over the :doc:`Walk<relpy.utils.Walk>` Generator
    to find all file paths in the root directory with the given
    pattern. If recurse is *True*: matching paths are identified
    for all sub directories.

    Parameters
    ----------
    root : string (default is *'.'*)
        Path for the root folder to look in.
    recurse : bool (default is *True*)
        If *True*, will also look in the subfolders.
    pattern : string (default is :emphasis:`'*'`, which means all the files are concerned)
        The pattern to look for in the files' name.

    Returns
    -------
    path_list : list
        list of all the matching files paths.

    '''

    path_list = []
    for path in Walk(root=root, recurse=recurse, pattern=pattern):
        path_list.append(path)
    return path_list
def scan_path ( root = '.' , recurse = False , pattern = '*' ) : path_list = [ ] for path in Walk ( root = root , recurse = recurse , pattern = pattern ) : path_list . append ( path ) return path_list
Runs a loop over the :doc:`Walk<relpy.utils.Walk>` Generator
    to find all file paths in the root directory with the given
    pattern. If recurse is *True*: matching paths are identified
    for all sub directories.

    Parameters
    ----------
    root : string (default is *'.'*)
        Path for the root folder to look in.
    recurse : bool (default is *True*)
        If *True*, will also look in the subfolders.
    pattern : string (default is :emphasis:`'*'`, which means all the files are concerned)
        The pattern to look for in the files' name.

    Returns
    -------
    path_list : list
        list of all the matching files paths.
Runs a loop over the : doc : Walk<relpy . utils . Walk > Generator to find all file paths in the root directory with the given pattern . If recurse is * True * : matching paths are identified for all sub directories .