Emit the file when stream is processed
Pass file to renameFunction