mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 11:09:26 +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.close()
|
||||
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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user