Open ALSchwalm opened 4 years ago
This should really be a more general solution. We have lots of places where we generate intermediate files. We need some way to register a file to be cleaned up regardless of how we exit. Maybe using an atexit
handler or something?
It is generally impossible to completely ensure that no files are left behind when doing an image download, but we should at least try to clean up any partial file downloads that are around if we receive SIGINT.