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

Function load_pattern_file

src/borg/patterns.py:27–31  ·  view source on GitHub ↗
(fileobj, roots, ie_commands, fallback=None)

Source from the content-addressed store, hash-verified

25
26
27def load_pattern_file(fileobj, roots, ie_commands, fallback=None):
28 if fallback is None:
29 fallback = ShellPattern # ShellPattern is defined later in this module
30 for line in clean_lines(fileobj):
31 fallback = parse_patternfile_line(line, roots, ie_commands, fallback)
32
33
34def load_exclude_file(fileobj, patterns):

Callers 4

parseMethod · 0.85
evaluateFunction · 0.85

Calls 2

clean_linesFunction · 0.85
parse_patternfile_lineFunction · 0.85

Tested by 3

evaluateFunction · 0.68