Compare commits

..

No commits in common. "f067850ab67206e9a6be59d088f38e397e7fc43f" and "44cb5286876b5a10e67df55fd4dfe456243b825f" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -46,8 +46,9 @@ def index(path):
if os.path.isdir(internal_path):
_, dirs, files = next(os.walk(internal_path))
files = sorted(filter(lambda x: not x.startswith("."), files))
dirs = sorted(filter(lambda x: not x.startswith("."), dirs))
files = filter(lambda x: not x.endswith(".php"), files)
files = filter(lambda x: not x.startswith("."), files)
dirs = filter(lambda x: not x.startswith("."), dirs)
return (
render_template(

View File

@ -3,11 +3,8 @@
{% block title %}{{ path }}{% endblock %}
{% block body %}
{% if path != "/" %}
<a href="..">&lt;--</a>
<br /><br />
{% endif %}
{% for dir in dirs %}
<a href="{{ path_join(path, dir) }}">{{ dir }}</a><br />