NVIDIA Morpheus (24.10.01)
(Latest Version)

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

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 Dec 3, 2024.