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

Method add_includepaths

src/borg/patterns.py:120–125  ·  view source on GitHub ↗

Used to add inclusion-paths from args.paths (from the command line).

(self, include_paths)

Source from the content-addressed store, hash-verified

118 self._add(pattern, cmd)
119
120 def add_includepaths(self, include_paths):
121 """Used to add inclusion-paths from args.paths (from the command line)."""
122 include_patterns = [parse_pattern(p, PathPrefixPattern) for p in include_paths]
123 self.add(include_patterns, IECommand.Include)
124 self.fallback = not include_patterns
125 self.include_patterns = include_patterns
126
127 def get_unmatched_include_patterns(self):
128 """Note that this only returns patterns added via *add_includepaths*, and it

Callers 1

build_matcherFunction · 0.95

Calls 2

addMethod · 0.95
parse_patternFunction · 0.85

Tested by

no test coverage detected