iglob#

barecat._api.Barecat.iglob(pattern, recursive=False, include_hidden=False)[source]#

Iterate over all files and directories matching a Unix-like glob pattern.

This function is equivalent to Python’s glob.iglob().

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 and directories (starting with '.').

Returns:

Iterator over all file and directory paths matching the pattern.

Return type:

Iterator[str]