check existing

This commit is contained in:
2024-06-27 12:55:29 +02:00
committed by Flo Greistorfer
parent b729ea3d8e
commit de8cb9aaa4

View File

@@ -218,6 +218,7 @@ def listfolder(folder: str, title: str):
f.write(" </body>\n</html>")
f.close()
else:
if os.path.exists(os.path.join(folder, "index.html")):
os.remove(os.path.join(folder, "index.html"))
pbar.update(1)