mutapath.Path.iglob

Path.iglob(pattern)[source]

Return an iterator of Path objects that match the pattern.

pattern - a path relative to this directory, with wildcards.

For example, Path('/users').iglob('*/bin/*') returns an iterator of all the files users have in their bin directories.

See also

glob.iglob()

Note

Glob is not recursive, even when using **. To do recursive globbing see walk(), walkdirs() or walkfiles().