morpheus.modules.input.multi_file_source
Functions
<a href="#morpheus.modules.input.multi_file_source.expand_paths_simple">expand_paths_simple</a> (filenames) |
Expand to glob all files in any directories in the input filenames, provided they actually exist. |
- expand_paths_simple(filenames)[source]
Expand to glob all files in any directories in the input filenames, provided they actually exist.
- Parameters
- filenamestyping.List[str]
A list of filenames or directories to expand.
- Returns
- typing.List[str]
A list of filenames with directories expanded to glob patterns.
Notes
If a filename in the list already contains a wildcard character (* or ?), it is appended to the output list as is.
Examples
>>> expand_paths_simple(['/path/to/dir']) ['/path/to/dir/*']