我正在尝试将.zip文件解压缩到特定的文件夹路径:
http://erlang.org/doc/man/zip.html#unzip-1
:zip.unzip(zip_path, {cwd: "/tmp/test-extracted/"})
** (SyntaxError) test.exs:18: syntax error before: cwd
(elixir) lib/code.ex:677: Code.require_file/2
答案 0 :(得分:0)
像这样:
:zip.unzip(String.to_charlist(zip_path), cwd: "/tmp/test-extracted/")