[erlang-questions] Questions about zip

Hugo Mills hugo@REDACTED
Fri May 16 09:05:04 CEST 2014


On Fri, May 16, 2014 at 02:58:11PM +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

   You have a very strong python accent. :)

  '' is for quoting atoms. You need "" to quote strings. In addition,
the tuple separator (after cwd) is , not :

   Hugo.

> 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.
> 
> [image: Low Kian Seong on about.me]
> 
> Low Kian Seong
> about.me/lowkianseong
>     <http://about.me/lowkianseong>

> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions


-- 
=== Hugo Mills: hugo@REDACTED carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
     --- A gentleman doesn't do damage unless he's paid for it. ---      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140516/27f03dfa/attachment.bin>


More information about the erlang-questions mailing list