mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-09 13:53:09 +00:00
--list-format: make it compatible with old archives
they do not have atime and ctime, use mtime instead.
This commit is contained in:
parent
f7666807cc
commit
d14e6f720c
1 changed files with 2 additions and 2 deletions
|
@ -462,8 +462,8 @@ class Archiver:
|
|||
|
||||
mtime = safe_timestamp(item[b'mtime'])
|
||||
if use_user_format:
|
||||
atime = safe_timestamp(item[b'atime'])
|
||||
ctime = safe_timestamp(item[b'ctime'])
|
||||
atime = safe_timestamp(item.get(b'atime') or item[b'mtime'])
|
||||
ctime = safe_timestamp(item.get(b'ctime') or item[b'mtime'])
|
||||
|
||||
if b'source' in item:
|
||||
source = item[b'source']
|
||||
|
|
Loading…
Add table
Reference in a new issue