core
core copied to clipboard
Avoid resmgr download creating zero-sized files when download fails
trafficstars
When a download with ocrd resmgr download fails, e.g. due to a connectivity/proxy issue, the target file is still created, which leads to all kinds of problematic behavior. When a download fails, no file should be created and/or an(y) zero-byte file(s) should be removed.