PyDocs

Nav

Importing Modules

contents

importlib.resources

function (source) Deprecated 3.11
  • contents(anchor, *path_names)
Deprecated since 3.11. Prefer iterdir() as above, which offers more control over the results and richer functionality.
Return an iterable over the named resources within the package.

The iterable returns :class:`str` resources (e.g. files).
The iterable does not recurse into subdirectories.
0 Examples
No examples for importlib.resources/contents.
See Also
No see-alsos for importlib.resources/contents
0 Notes
No notes for contents