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

Function build_matcher

src/borg/archiver/_common.py:579–584  ·  view source on GitHub ↗
(inclexcl_patterns, include_paths, pattern_roots=())

Source from the content-addressed store, hash-verified

577
578
579def build_matcher(inclexcl_patterns, include_paths, pattern_roots=()):
580 matcher = PatternMatcher()
581 matcher.add_inclexcl(inclexcl_patterns)
582 paths = list(pattern_roots) + list(include_paths)
583 matcher.add_includepaths(paths)
584 return matcher
585
586
587def build_filter(matcher, strip_components):

Callers 7

_process_archiveMethod · 0.85
_process_archiveMethod · 0.85
do_diffMethod · 0.85
do_extractMethod · 0.85
do_listMethod · 0.85
do_recreateMethod · 0.85
_export_tarMethod · 0.85

Calls 3

add_inclexclMethod · 0.95
add_includepathsMethod · 0.95
PatternMatcherClass · 0.85

Tested by

no test coverage detected