Just FYI, Apple's crazy policy of deleting "expired" temp files has bitten me in calibre as well. The solution is to not use /tmp as the temporary directory. Instead use the user cache directory as the temporary directory. You can get that by passing _CS_DARWIN_USER_CACHE_DIR to the confstr() function. That is what calibre does on macOS to work around this issue.
|