I would like to write a gzip file from elixir code.
I tried to execute the following code, but it does not work.
io_device = File.open!("/path/to/file.gzip", [:write, :compressed])
IO.write(io_device, "test")
IO.writereturns :okbut /path/to/file.gzipempty.
How can I write to a gzip file?
source
share