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:
parent
d8b7aef15c
commit
4d9fd6d13f
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue