Swap temp files to real files