mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix dir does not exist.
This commit is contained in:
parent
46740f7cbf
commit
b2182919ff
@ -860,6 +860,12 @@ class PanelHandler(BaseHandler):
|
||||
page_data["backgrounds"].append(cached_split[1])
|
||||
if "login_1.jpg" not in page_data["backgrounds"]:
|
||||
page_data["backgrounds"].append("login_1.jpg")
|
||||
self.helper.ensure_dir_exists(
|
||||
os.path.join(
|
||||
self.controller.project_root,
|
||||
"app/frontend/static/assets/images/auth/custom",
|
||||
)
|
||||
)
|
||||
for item in os.listdir(
|
||||
os.path.join(
|
||||
self.controller.project_root,
|
||||
|
Loading…
Reference in New Issue
Block a user