Commit 1695181a authored by Andrea Lorenzon's avatar Andrea Lorenzon 💬
Browse files

updated requirements and fixed dir walk

parent 12a8ff7a
Pipeline #1571 failed with stages
in 14 seconds
from functools import reduce
from typing import List
......@@ -15,6 +14,7 @@ def JSON_from_folder(root_dir: str) -> List[dict]:
import settings
d = {}
settings.debug and print("root dir:" , root_dir)
root_dir = root_dir.rstrip(os.sep)
start = root_dir.rfind(os.sep) + 1
for path, dirs, files in os.walk(root_dir):
......@@ -23,8 +23,8 @@ def JSON_from_folder(root_dir: str) -> List[dict]:
parent = reduce(dict.get, folders[:-1], d)
parent[folders[-1]] = subdir
ff = settings.fileFolderName.get(settings.deploy)
print("d",d)
print("ff",ff)
settings.debug and print("d",d)
settings.debug and print("ff",ff)
return DictToJsTree(d[ff])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment