MCPcopy
hub / github.com/borgbackup/borg / get_pattern_class

Function get_pattern_class

src/borg/patterns.py:324–328  ·  view source on GitHub ↗
(prefix)

Source from the content-addressed store, hash-verified

322
323
324def get_pattern_class(prefix):
325 try:
326 return _PATTERN_CLASS_BY_PREFIX[prefix]
327 except KeyError:
328 raise ValueError(f"Unknown pattern style: {prefix}") from None
329
330
331def parse_pattern(pattern, fallback=FnmatchPattern, recurse_dir=True):

Callers 2

parse_patternFunction · 0.85
parse_inclexcl_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected