cloudfoundry/bosh — pull request #95 by yudai (2013-03-24 16:41:37+00:00)
Title: 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.