[erlang-questions] Questions about zip

Bengt Kleberg bengt.kleberg@REDACTED
Fri May 16 09:12:11 CEST 2014


Greetings,

In Erlang a ' means that the item is an atom. You probably want " to
indicate a string.

Also, it would help if you explained the result you expected. Take
zip:zip_open/2. It will give you a handle, not unzip anything.


bengt

On Fri, 2014-05-16 at 14:58 +0800, Low Kian Seong wrote:
> First of all sorry, I am a beginner and the docs are a bit confusing
> to me. Can someone tell me what is wrong with this?
> 
> 2> zip:zip_open('dome.zip', [{'cwd': <<'/home/lowks/Downloads'>>}])
> 2> .
> * 1: illegal expression
> 
> 
> also The second one gives back ok, but when I check the zip file is
> still compressed.
> 
> 4> zip:zip_open("dome.zip").
> {ok,<0.40.0>}
> 
> 
> 
> Some help is greatlly appreciated. Thanks.
>  
> Low Kian Seong on
> about.me
>  
> Low Kian Seong
> about.me/lowkianseong
>  
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions





More information about the erlang-questions mailing list