mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 12:45:34 +00:00
build_filter: micro opt / easier code, fixes #3390
This commit is contained in:
parent
09781e1d30
commit
8060d4100a
1 changed files with 1 additions and 1 deletions
|
@ -591,7 +591,7 @@ def build_filter(matcher, strip_components):
|
|||
if strip_components:
|
||||
|
||||
def item_filter(item):
|
||||
matched = matcher.match(item.path) and os.sep.join(item.path.split(os.sep)[strip_components:])
|
||||
matched = matcher.match(item.path) and len(item.path.split(os.sep)) > strip_components
|
||||
return matched
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue