mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
backup: fix boring issue where archive is a broken symlink...
This commit is contained in:
parent
f9a7016931
commit
a95d10e50c
1 changed files with 1 additions and 0 deletions
|
@ -2376,6 +2376,7 @@ def backup_list(with_info=False, human_readable=False):
|
|||
# (we do a realpath() to resolve symlinks)
|
||||
archives = glob(f"{ARCHIVES_PATH}/*.tar.gz") + glob(f"{ARCHIVES_PATH}/*.tar")
|
||||
archives = {os.path.realpath(archive) for archive in archives}
|
||||
archives = {archive for archive in archives if os.path.exists(archive)}
|
||||
archives = sorted(archives, key=lambda x: os.path.getctime(x))
|
||||
# Extract only filename without the extension
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue