Ideally the temp file would be saved in `directory` with other temp files, so that `rmswap` could remove it.