[postprocessor:zip] delete empty archives when done (#316)

This commit is contained in:
Mike Fährmann
2019-06-19 18:14:33 +02:00
parent 520c8ba106
commit a01f99728c

View File

@@ -55,5 +55,11 @@ class ZipPP(PostProcessor):
except OSError:
pass
if not self.zfile.NameToInfo:
try:
os.unlink(self.zfile.filename)
except OSError:
pass
__postprocessor__ = ZipPP