mutapath.MutaPath.glob

MutaPath.glob(pattern)[source]

Return a list of Path objects that match the pattern.

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

For example, Path('/users').glob('*/bin/*') returns a list of all the files users have in their bin directories.

See also

glob.glob()

Note

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