morpheus.modules.input.multi_file_source

Functions

expand_paths_simple(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
filenames

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

Copy
Copied!
            

>>> expand_paths_simple(['/path/to/dir']) ['/path/to/dir/*']

Previous morpheus.modules.input
Next morpheus.modules.input.rss_source
© Copyright 2024, NVIDIA. Last updated on Apr 25, 2024.