def list_matching_files(dir, extensions=None, recursive=True):
from .modules import utils<EOL>return utils.list_matching_files(dir, extensions=extensions, recursive=recursive)<EOL>
Returns a list of all files in the specified directory,
optionally recursively and/or with the specified extensions.