Prevent file listing from showing up twice.
This commit is contained in:
parent
6f9ee9fa09
commit
9315717d03
|
@ -349,12 +349,13 @@ def upgrade_check_times(location_config, borg_repository_id):
|
||||||
temporary_path = f'{old_path}.temp'
|
temporary_path = f'{old_path}.temp'
|
||||||
logger.debug(f"#713: temporary_path = '{temporary_path}'")
|
logger.debug(f"#713: temporary_path = '{temporary_path}'")
|
||||||
|
|
||||||
logger.debug(f"\n#713: file listing:")
|
if check_type == 'archives':
|
||||||
logger.debug(
|
logger.debug(f"\n#713: file listing:")
|
||||||
execute_command_and_capture_output(
|
logger.debug(
|
||||||
['ls', '-alR', f'{os.path.dirname(os.path.dirname(old_path))}'], capture_stderr=True, shell=True
|
execute_command_and_capture_output(
|
||||||
|
['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)}")
|
logger.debug(f"#713: os.path.isfile(old_path) = {os.path.isfile(old_path)}")
|
||||||
logger.debug(f"#713: os.path.isfile(temporary_path) = {os.path.isfile(temporary_path)}")
|
logger.debug(f"#713: os.path.isfile(temporary_path) = {os.path.isfile(temporary_path)}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user