Show .php and order lists alphabetically
This commit is contained in:
parent
44cb528687
commit
bc385e4af3
|
@ -46,9 +46,8 @@ def index(path):
|
||||||
|
|
||||||
if os.path.isdir(internal_path):
|
if os.path.isdir(internal_path):
|
||||||
_, dirs, files = next(os.walk(internal_path))
|
_, dirs, files = next(os.walk(internal_path))
|
||||||
files = filter(lambda x: not x.endswith(".php"), files)
|
files = sorted(filter(lambda x: not x.startswith("."), files))
|
||||||
files = filter(lambda x: not x.startswith("."), files)
|
dirs = sorted(filter(lambda x: not x.startswith("."), dirs))
|
||||||
dirs = filter(lambda x: not x.startswith("."), dirs)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
render_template(
|
render_template(
|
||||||
|
|
Loading…
Reference in New Issue