list_files
=os.getcwd(), pattern=None, recursive=False) list_files(path
List all files in a directory
Args: path (str | List[str]): Path to the directory. Defaults to the current directory. pattern (str): a pattern to be passed on to re.match to limit the files which are found recursive (bool): Boolean, indicating to do list all files recursively to obtain files at the subdirectories
Returns: a list of files
Examples: >>> from rlike import * >>> x = list_files() >>> x = list_files(recursive = True) >>> x = list_files(pattern = “.py”) >>> x = list_files(pattern = “.py”, recursive = True) >>> x = list_files(tempdir(), recursive = True)