Created
December 2, 2015 15:40
-
-
Save barisbalic/4be05987f8e464d07634 to your computer and use it in GitHub Desktop.
Zip files erlang/elixir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex(9)> files = [{'test.zip', "ABCBED"}] | |
[{'test.zip', "ABCBED"}] | |
iex(10)> :zip.create('mem', files, [:memory]) | |
{:ok, | |
{'mem', | |
<<80, 75, ...>>}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment