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

Function parse_exclude_pattern

src/borg/patterns.py:341–344  ·  view source on GitHub ↗

Read pattern from string and return an instance of the appropriate implementation class.

(pattern_str, fallback=FnmatchPattern)

Source from the content-addressed store, hash-verified

339
340
341def parse_exclude_pattern(pattern_str, fallback=FnmatchPattern):
342 """Read pattern from string and return an instance of the appropriate implementation class."""
343 epattern_obj = parse_pattern(pattern_str, fallback, recurse_dir=False)
344 return CmdTuple(epattern_obj, IECommand.ExcludeNoRecurse)
345
346
347def parse_inclexcl_command(cmd_line_str, fallback=ShellPattern):

Callers 1

load_exclude_fileFunction · 0.85

Calls 1

parse_patternFunction · 0.85

Tested by

no test coverage detected