1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 01:37:20 +00:00

create --dry-run: fix display of kept tagfile, fixes #5834

This commit is contained in:
Thomas Waldmann 2021-06-15 19:09:51 +02:00 committed by James Buren
parent fd02923fac
commit 243135167a

View file

@ -791,8 +791,9 @@ def _rec_walk(self, *, path, parent_fd, name, fso, cache, matcher,
# if we are already recursing in an excluded dir, we do not need to do anything else than
# returning (we do not need to archive or recurse into tagged directories), see #3991:
if not recurse_excluded_dir:
if keep_exclude_tags and not dry_run:
fso.process_dir_with_fd(path=path, fd=child_fd, st=st)
if keep_exclude_tags:
if not dry_run:
fso.process_dir_with_fd(path=path, fd=child_fd, st=st)
for tag_name in tag_names:
tag_path = os.path.join(path, tag_name)
self._rec_walk(