create missing dir

This commit is contained in:
timurgordon
2025-02-20 08:12:48 +03:00
parent 2f54f05cfd
commit a26bb56b15

View File

@@ -24,6 +24,7 @@ pub fn (b BizModel) new_report(report Report) !Report {
name := if report.name != '' {report.name} else { texttools.snake_case(report.title) }
path := pathlib.get_dir(
path: os.join_path(os.home_dir(), '/hero/var/bizmodel/reports/${name}')
create: true
empty: true
)!