1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 16:26:29 +00:00

fix --exclude and --exclude-from recursing into directories

This commit is contained in:
Marian Beermann 2017-05-05 14:49:23 +02:00
parent d8b7aef15c
commit 4d9fd6d13f

View file

@ -347,8 +347,8 @@ def parse_pattern(pattern, fallback=FnmatchPattern, recurse_dir=True):
def parse_exclude_pattern(pattern_str, fallback=FnmatchPattern):
"""Read pattern from string and return an instance of the appropriate implementation class.
"""
epattern_obj = parse_pattern(pattern_str, fallback)
return CmdTuple(epattern_obj, IECommand.Exclude)
epattern_obj = parse_pattern(pattern_str, fallback, recurse_dir=False)
return CmdTuple(epattern_obj, IECommand.ExcludeNoRecurse)
def parse_inclexcl_command(cmd_line_str, fallback=ShellPattern):