mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add sorting to filelist
This commit is contained in:
parent
460472fe9d
commit
c9908a3e0f
@ -649,7 +649,9 @@ class Helpers:
|
||||
|
||||
@staticmethod
|
||||
def generate_tree(folder, output=""):
|
||||
for raw_filename in os.listdir(folder):
|
||||
file_list = os.listdir(folder)
|
||||
file_list.sort()
|
||||
for raw_filename in file_list:
|
||||
filename = html.escape(raw_filename)
|
||||
rel = os.path.join(folder, raw_filename)
|
||||
if os.path.isdir(rel):
|
||||
|
Loading…
Reference in New Issue
Block a user