remove existing bruh

This commit is contained in:
2024-07-10 22:33:19 +02:00
parent dfc77e9418
commit 068868ba54
2 changed files with 4 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ from modules.generate_html import list_folder, EXCLUDES
# fmt: off # fmt: off
# Constants # Constants
STATIC_FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files") STATIC_FILES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files")
VERSION = "2.0.0" VERSION = "2.0.1"
RAW_EXTENSIONS = [ RAW_EXTENSIONS = [
".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr", ".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr",
".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos", ".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos",

View File

@@ -175,6 +175,9 @@ def generate_html(folder: str, title: str, _args: Args, raw: List[str]) -> None:
if should_generate_html(images, contains_files, _args): if should_generate_html(images, contains_files, _args):
create_html_file(folder, title, foldername, images, subfolders, _args) create_html_file(folder, title, foldername, images, subfolders, _args)
else:
if os.path.exists(os.path.join(folder, "index.html")):
os.remove(os.path.join(folder, "index.html"))
if not _args.non_interactive_mode: if not _args.non_interactive_mode:
pbardict["htmlbar"].update(1) pbardict["htmlbar"].update(1)