[erlang-questions] Questions about zip

deng lifen erlangdlf@REDACTED
Fri May 16 09:44:59 CEST 2014


http://www.erlang.org/doc/man/zip.html#zip_list_dir-1


在 2014年5月16日,15:39,Low Kian Seong <kianseong@REDACTED> 写道:

> It's better now, I get this: 
> 
> 1> zip:zip_open("dome.zip", [{cwd, <<"/home/lowks/Downloads">>}]).
> {ok,<0.34.0>}
> 
> but where is the unzipped content anyway ?
> 
>  
> 
>  	
> Low Kian Seong
> about.me/lowkianseong
>  
> 
> 
> On Fri, May 16, 2014 at 3:33 PM, deng lifen <erlangdlf@REDACTED> wrote:
> 
> 1> zip:zip_open("dome.zip", [{cwd, <<"/home/lowks/Downloads">>}]).
> 
> 
> 在 2014年5月16日,15:22,Low Kian Seong <kianseong@REDACTED> 写道:
> 
>> I got this:
>> 
>> 6> zip:zip_open('dome.zip', [{'cwd', <<'/home/lowks/Downloads'>>}]).
>> ** exception error: bad argument
>> 
>> 
>>  
>> 
>>  	
>> Low Kian Seong
>> about.me/lowkianseong
>>  
>> 
>> 
>> On Fri, May 16, 2014 at 3:07 PM, deng lifen <erlangdlf@REDACTED> wrote:
>> try this:
>> 
>> zip:zip_open('dome.zip', [{'cwd', <<'/home/lowks/Downloads'>>}]).
>> 
>> 
>> 在 2014年5月16日,14:58,Low Kian Seong <kianseong@REDACTED> 写道:
>> 
>>> 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
>>> about.me/lowkianseong
>>>  
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED
>>> http://erlang.org/mailman/listinfo/erlang-questions
>> 
>> deng lifen
>> erlangdlf@REDACTED
>> 
>> 
>> 
>> 
> 
> deng lifen
> erlangdlf@REDACTED
> 
> 
> 
> 

deng lifen
erlangdlf@REDACTED



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140516/ce42e347/attachment.htm>


More information about the erlang-questions mailing list