amzn / sketch-constructor

Read/write/manipulate Sketch files in Node without Sketch plugins!
https://amzn.github.io/sketch-constructor/#/
Apache License 2.0
543 stars 45 forks source link

feat: delete temporary files upon process exit #175

Closed kgoedecke closed 2 years ago

kgoedecke commented 3 years ago

Description of changes: This makes sure that all temporary files (in STORAGE_DIR) that are created throughout the process are being deleted if the process exits (potentially due to an error).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.