fix: Path in index may be the full path (old format)

pull/833/head
Raphaël Vinot 2023-11-18 02:47:43 +01:00
parent cd11df7ac4
commit ff27808320
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,7 @@ class Archiver(AbstractManager):
if str(dir_on_disk) not in current_index_dirs: if str(dir_on_disk) not in current_index_dirs:
new_captures.add(dir_on_disk) new_captures.add(dir_on_disk)
else: else:
current_dirs.add(str(dir_on_disk))
current_dirs.add(dir_on_disk.name) current_dirs.add(dir_on_disk.name)
else: else:
@ -139,6 +140,7 @@ class Archiver(AbstractManager):
if str(dir_on_disk) not in current_index_dirs: if str(dir_on_disk) not in current_index_dirs:
new_captures.add(dir_on_disk) new_captures.add(dir_on_disk)
else: else:
current_dirs.add(str(dir_on_disk))
current_dirs.add(dir_on_disk.name) current_dirs.add(dir_on_disk.name)
# Check if all the directories in current_dirs (that we got by listing the directory) # Check if all the directories in current_dirs (that we got by listing the directory)