diff --git a/borgmatic/borg/check.py b/borgmatic/borg/check.py index 3cce53ad..5a512e6e 100644 --- a/borgmatic/borg/check.py +++ b/borgmatic/borg/check.py @@ -352,7 +352,7 @@ def upgrade_check_times(location_config, borg_repository_id): logger.debug(f"\n#713: file listing:") logger.debug( execute_command_and_capture_output( - ['ls', '-alR', f'{os.path.dirname(old_path)}'], capture_stderr=True, shell=True + ['ls', '-alR', f'{os.path.dirname(os.path.dirname(old_path))}'], capture_stderr=True, shell=True ) ) logger.debug(f"#713: os.path.isfile(old_path) = {os.path.isfile(old_path)}")