PlasmaCalcs.tools.os_tools.find_files_re
- PlasmaCalcs.tools.os_tools.find_files_re(pattern, dir='.', *, exclude=[])
- find all files in this directory and all subdirectories which match the given pattern.
- pattern: str
- regular expression pattern to match filenames.
- exclude: str, or list of strs
- exclude any subdirectories whose name equals one of these strings or re.fullmatch one of these strings.E.g. exclude=’*[.]io’ will exclude all subdirectories whose name ends with ‘.io’;exclude=’parallel’ will exclude all subdirectories whose name equals ‘parallel’.
returns list of abspaths to all files found.