diff --git a/generate_html.py b/generate_html.py index e6bc297..06fc20b 100755 --- a/generate_html.py +++ b/generate_html.py @@ -179,6 +179,7 @@ def listfolder(folder: str, title: str): subfolders.extend([f'
Folder icon
{item}
']) listfolder(os.path.join(folder, item), item) else: + pbar.desc = f"Generating html files - {folder}" contains_files = True if os.path.splitext(item)[1].lower() in imgext: image = f'
{item}
{item}' @@ -197,6 +198,7 @@ def listfolder(folder: str, title: str): image += f': RAW' image += "
" images.extend([image]) + pbar.desc = f"Generating html files - {folder}" if len(images) > 0 or (args.fancyfolders and not contains_files): with open(os.path.join(folder, "index.html"), "w", encoding="utf-8") as f: f.write(temp_obj.substitute(title=title))