mutapath.Path.glob¶
-
Path.
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 theirbin
directories.See also
Note
Glob is not recursive, even when using
**
. To do recursive globbing seewalk()
,walkdirs()
orwalkfiles()
.