1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-25 07:23:28 +00:00

create: --list --dry-run output for directories, fixes #7209

Without the status being set no output was generated in
dry-run mode, confusing users about whether borg would back
up directories (in non-dry-run mode).

- == item not backed up just because of dry-run mode
x == item excluded
This commit is contained in:
Thomas Waldmann 2022-12-15 17:37:51 +01:00
parent de6d8af42c
commit 19e25043b5
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -442,8 +442,11 @@ def _rec_walk(
)
self.print_file_status("x", path)
return
if not recurse_excluded_dir and not dry_run:
status = fso.process_dir_with_fd(path=path, fd=child_fd, st=st)
if not recurse_excluded_dir:
if not dry_run:
status = fso.process_dir_with_fd(path=path, fd=child_fd, st=st)
else:
status = "-"
if recurse:
with backup_io("scandir"):
entries = helpers.scandir_inorder(path=path, fd=child_fd)