mirror of https://github.com/CIRCL/lookyloo
chg: Remove empty dirs when everything has been archived
parent
3408ae1f2e
commit
9031141b61
|
@ -156,6 +156,7 @@ class Archiver(AbstractManager):
|
||||||
logmsg = f'{logmsg} (s3fs directory)'
|
logmsg = f'{logmsg} (s3fs directory)'
|
||||||
self.logger.info(logmsg)
|
self.logger.info(logmsg)
|
||||||
index_file.unlink(missing_ok=True)
|
index_file.unlink(missing_ok=True)
|
||||||
|
root_dir.rmdir()
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if new_captures:
|
if new_captures:
|
||||||
|
|
Loading…
Reference in New Issue