glob_paths#

barecat.Index.glob_paths(pattern, recursive=False, include_hidden=False, only_files=False)#

Glob for paths matching a pattern.

The glob syntax is equivalent to Python’s glob.glob().

Parameters:
  • pattern (str) – Glob pattern.

  • recursive (bool) – Whether to glob recursively. If True, the pattern can contain the '/**/' sequence to match any number of directories.

  • include_hidden (bool) – Whether to include hidden files and directories (those starting with a dot).

  • only_files (bool) – Whether to glob only files and not directories.

Returns:

A list of paths.