GlobHelper#

class barecat.util.glob_helper.GlobHelper(index)[source]#

Handles glob operations for an Index instance.

Parameters:

index (barecat.core.index.Index) – The Index instance to operate on.

Instance Methods#

raw_iterglob_paths_multi(patterns[, order, ...])

Like raw_iterglob_paths but with multiple patterns OR'd together.

glob_paths(pattern[, recursive, include_hidden, ...])

Glob for paths matching a pattern.

iterglob_paths(pattern[, recursive, include_hidden, ...])

Iterate over paths matching a pattern.

raw_iterglob_infos_multi(patterns[, only_files, bufsize])

Like raw_iterglob_infos but with multiple patterns OR'd together.

iterglob_infos(pattern[, recursive, include_hidden, ...])

Iterate over file and directory info objects matching a pattern.

iterglob_infos_incl_excl(rules[, default_include, ...])

Iterate over infos matching rsync-style include/exclude rules.