Download and write .tar.gz files without corruption

前端 未结 4 1773
一整个雨季
一整个雨季 2021-02-10 13:33

How do you download files, specifically .zip and .tar.gz, with Ruby and write them to the disk?


This question was originally specific to a bug in MacRuby, b

4条回答
  •  遥遥无期
    2021-02-10 14:25

    The last time I got currupted files with Ruby was when I forgot to call file.binmode right after File.open. Took me hours to find out what was wrong. Does it help with your issue?

提交回复
热议问题