get_files_from_dir

get_files_from_dir(
    dir_path: str | list[str],
    types: list = ['txt', 'json', 'csv', 'tsv', 'md', 'html', 'htm', 'rtf', 'rst', 'jsonl', 'log', 'xml', 'yaml', 'yml', 'pdf', 'mdx'],
    recursive: bool = True
) -> 

Return a list of all the files in a given directory, a url, a file path or a list of them.

Parameters:
NameDescription
dir_pathType: str | list[str]
typesType: list

Default: [‘txt’, ‘json’, ‘csv’, ‘tsv’, ‘md’, ‘html’, ‘htm’, ‘rtf’, ‘rst’, ‘jsonl’, ‘log’, ‘xml’, ‘yaml’, ‘yml’, ‘pdf’, ‘mdx’]
recursiveType: bool

Default: True