MCPcopy Index your code
hub / github.com/borgbackup/borg / add

Method add

src/borg/patterns.py:112–118  ·  view source on GitHub ↗

Add list of patterns to internal list. *cmd* indicates whether the pattern is an include/exclude pattern, and whether recursion should be done on excluded folders.

(self, patterns, cmd)

Source from the content-addressed store, hash-verified

110 self._items.append((pattern, cmd))
111
112 def add(self, patterns, cmd):
113 """Add list of patterns to internal list. *cmd* indicates whether the
114 pattern is an include/exclude pattern, and whether recursion should be
115 done on excluded folders.
116 """
117 for pattern in patterns:
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)."""

Callers 3

add_includepathsMethod · 0.95
test_pattern_matcherFunction · 0.95
test_basicFunction · 0.95

Calls 1

_addMethod · 0.95

Tested by 2

test_pattern_matcherFunction · 0.76
test_basicFunction · 0.76