mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
Merge pull request #7210 from ThomasWaldmann/list-directories-dry-run-1.2
create: --list --dry-run output for directories, fixes #7209
This commit is contained in:
commit
2aae879c49
1 changed files with 5 additions and 2 deletions
|
|
@ -810,8 +810,11 @@ class Archiver:
|
|||
restrict_dev=restrict_dev, read_special=read_special, dry_run=dry_run)
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue