forked from crunk/distribusi-verse
bweh
This commit is contained in:
parent
74bc1be643
commit
06d0956f30
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user