Find all files matching a Unix-like glob pattern.
Like glob, 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:
List of all file paths matching the pattern.
- Return type:
list[str]