From f7c45b5039547adc26b876438dca45d942b7f04f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 8 Jan 2024 16:50:48 +0100 Subject: [PATCH] fix: Add proper path in set to check --- bin/archiver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/archiver.py b/bin/archiver.py index 75d52eb5..38d803ed 100755 --- a/bin/archiver.py +++ b/bin/archiver.py @@ -119,6 +119,7 @@ class Archiver(AbstractManager): if str(dir_on_disk) not in current_index_dirs: new_captures.add(dir_on_disk) current_dirs.add(dir_on_disk.name) + current_dirs.add(str(dir_on_disk)) else: with os.scandir(root_dir) as it: @@ -137,6 +138,7 @@ class Archiver(AbstractManager): if str(dir_on_disk) not in current_index_dirs: new_captures.add(dir_on_disk) current_dirs.add(dir_on_disk.name) + current_dirs.add(str(dir_on_disk)) # Check if all the directories in current_dirs (that we got by listing the directory) # are the same as the one in the index. If they're not, we pop the UUID before writing the index