This commit is contained in:
crunk 2025-01-10 13:31:23 +01:00
parent 74bc1be643
commit 06d0956f30

View File

@ -157,7 +157,7 @@ def _remove_existing_index_html(root, files):
index = os.path.join(root, "index.html")
if "index.html" in files:
try:
if check_distribusi_index(index):
if _check_distribusi_index(index):
os.remove(index)
except Exception as e:
print(e)
@ -205,7 +205,7 @@ def distribusify(directory, cssfile):
if type_ in FILE_TYPES:
match type_:
case "text":
subtype, tag = handle_text_files(
subtype, tag = _handle_text_files(
name, full_path, subtype
)
case "image":
@ -230,7 +230,7 @@ def distribusify(directory, cssfile):
for name in sorted(dirs):
tag = "<a href='{}/index.html'>{}</a>".replace("{}", name)
html.insert(0, format_div("dir", "dir", tag, "folder"))
html.insert(0, _format_div("dir", "dir", tag, "folder"))
index = os.path.join(root, "index.html")
_write_index_html(index, html, cssfile)