Iterate over all files matching a Unix-like glob pattern.
Like iglob, but only returns files, not directories.
- Parameters:
pattern (str) – Unix-like glob pattern to match.
recursive (bool) – If True, search recursively, with '/**/' matching any number of
directories.
include_hidden (bool) – If True, include hidden files (starting with ".").
- Returns:
Iterator over all file paths matching the pattern.
- Return type:
Iterator[str]