mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
check existing
This commit is contained in:
@@ -218,7 +218,8 @@ def listfolder(folder: str, title: str):
|
|||||||
f.write(" </body>\n</html>")
|
f.write(" </body>\n</html>")
|
||||||
f.close()
|
f.close()
|
||||||
else:
|
else:
|
||||||
os.remove(os.path.join(folder, "index.html"))
|
if os.path.exists(os.path.join(folder, "index.html")):
|
||||||
|
os.remove(os.path.join(folder, "index.html"))
|
||||||
pbar.update(1)
|
pbar.update(1)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user