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

... data to the filesystem

I found when I copied a downloaded file to another path after `get(id, file)`, the copied file was sometimes broken. This caused by buffered data.

I added a `flush()` after `get_file()` to ensure writing out all the data to the underlaying file system.