cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

Improvements on temp dir handling in case of cancellation or failure #100

Closed aersam closed 4 years ago

aersam commented 4 years ago

The temp dir could be improved for the case of cancellation of the generation process. If I cancel ng-openapi-gen there are some issues:

As always, I'd do a PR if you want.

luisfpg commented 4 years ago

@aersamkull Please, try this commit. I've done several tests and for me the temp dir is always deleted now.