Flush files