Skip to content

Commit

Permalink
use mkpath
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Sep 11, 2024
1 parent 9b1727b commit 0ae7426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operation/operation_model_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function solve_impl!(model::OperationModel)
if get_export_optimization_model(get_settings(model))
model_output_dir = joinpath(output_dir, "optimization_model_exports")
if !ispath(model_output_dir)
mkdir(model_output_dir)
mkpath(model_output_dir)
end
tss = replace("$(ts)", ":" => "_")
model_export_path = joinpath(model_output_dir, "exported_$(model_name)_$(tss).json")
Expand Down

0 comments on commit 0ae7426

Please sign in to comment.