fix: do not attempt to remove a directory too early

pull/860/head
Raphaël Vinot 2024-01-08 16:37:48 +01:00
parent 5c9dd1eda0
commit 79f5b728d0
1 changed files with 0 additions and 4 deletions

View File

@ -114,8 +114,6 @@ class Archiver(AbstractManager):
if sub_index := self._update_index(dir_on_disk, s3fs_parent_dir=s3fs_dir):
# got a day directory that contains captures
sub_indexes.append(sub_index)
else:
continue
else:
# got a capture
if str(dir_on_disk) not in current_index_dirs:
@ -134,8 +132,6 @@ class Archiver(AbstractManager):
if sub_index := self._update_index(dir_on_disk):
# got a day directory that contains captures
sub_indexes.append(sub_index)
else:
continue
else:
# isoformat
if str(dir_on_disk) not in current_index_dirs: