diff --git a/src/__init__.py b/src/__init__.py index 13835f6..20eb37c 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -37,7 +37,7 @@ def index(path): render_template( "error.html", code=404, - msg=f'The path "{path}" does not exist.' + msg=f'The path "{path}" does not exist.', ), 404, ) @@ -46,6 +46,7 @@ def index(path): if os.path.isdir(internal_path): _, dirs, files = next(os.walk(internal_path)) + 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)