mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-31 21:06:10 +01:00
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:
commit
de191cdf3f
@ -653,7 +653,9 @@ class Helpers:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def generate_tree(folder, output=""):
|
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)
|
filename = html.escape(raw_filename)
|
||||||
rel = os.path.join(folder, raw_filename)
|
rel = os.path.join(folder, raw_filename)
|
||||||
if os.path.isdir(rel):
|
if os.path.isdir(rel):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user