chg: Remove empty dirs when everything has been archived

pull/834/head
Raphaël Vinot 2023-11-21 11:50:09 +01:00
parent 3408ae1f2e
commit 9031141b61
1 changed files with 1 additions and 0 deletions

View File

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