Call `flush()` after downloading a remote file to write out the buffered data to the filesystem