def scan_path(root='<STR_LIT:.>', recurse=False, pattern='<STR_LIT:*>'):
path_list = []<EOL>for path in Walk(root=root, recurse=recurse, pattern=pattern):<EOL><INDENT>path_list.append(path)<EOL><DEDENT>return path_list<EOL>
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.