Merge branch 'pretzel-branch' into 'dev'

Minor fixes for files. Still need to get this efficient.

See merge request crafty-controller/crafty-commander!125
This commit is contained in:
Andrew 2021-12-21 22:39:59 +00:00
commit de191cdf3f

View File

@ -653,7 +653,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):