File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
frb_codegen/src/library/codegen/config/internal_config_parser Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use crate::utils::path_utils::{canonicalize_with_error_message, find_dart_packag
1515use anyhow:: Result ;
1616use itertools:: Itertools ;
1717use log:: debug;
18+ use std:: fs;
1819use std:: path:: PathBuf ;
1920use strum:: IntoEnumIterator ;
2021
@@ -50,7 +51,10 @@ impl InternalConfig {
5051 & config. rust_output ,
5152 ) ?;
5253
53- let dart_output_dir = canonicalize_with_error_message ( & base_dir. join ( dart_output) ) ?;
54+ let dart_output_dir_raw = base_dir. join ( dart_output) ;
55+ fs:: create_dir_all ( & dart_output_dir_raw) ?;
56+
57+ let dart_output_dir = canonicalize_with_error_message ( & dart_output_dir_raw) ?;
5458 let dart_output_path_pack =
5559 dart_path_parser:: compute_dart_output_path_pack ( & dart_output_dir) ?;
5660
You can’t perform that action at this time.
0 commit comments