chg: remove index when all the captures are archived

pull/834/head
Raphaël Vinot 2023-11-20 23:48:56 +01:00
parent a4970b3481
commit 6d61645d97
1 changed files with 1 additions and 0 deletions

View File

@ -155,6 +155,7 @@ class Archiver(AbstractManager):
if s3fs_parent_dir:
logmsg = f'{logmsg} (s3fs directory)'
self.logger.info(logmsg)
index_file.unlink(missing_ok=True)
return None
if new_captures: