Commit de34b88
authored
fix: create directories if they do not exist before writing output file (oapi-codegen#1994)
As noted in oapi-codegen#1052, if the parent directory of the output file doesn't
exist, it will be automatically created before writing the generated
code.
This prevents errors if the specified output path contains a
non-existent directory.
Closes oapi-codegen#1052.1 parent f2bf249 commit de34b88
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
322 | 325 | | |
323 | 326 | | |
324 | 327 | | |
| |||
0 commit comments