I think you could use

    tmpFiles.swapWith(readFiles)