Flush temp source file after writing