MCPcopy Create free account
hub / github.com/borgbackup/borg / __init__

Method __init__

src/borg/patterns.py:178–183  ·  view source on GitHub ↗
(self, pattern, recurse_dir=False)

Source from the content-addressed store, hash-verified

176 PREFIX: str = None
177
178 def __init__(self, pattern, recurse_dir=False):
179 self.pattern_orig = pattern
180 self.match_count = 0
181 pattern = normalize_path(pattern)
182 self._prepare(pattern)
183 self.recurse_dir = recurse_dir
184
185 def match(self, path, normalize=True):
186 """Return a boolean indicating whether *path* is matched by this pattern.

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 2

_prepareMethod · 0.95
normalize_pathFunction · 0.85

Tested by

no test coverage detected