Skip to content

Commit 3090797

Browse files
convert dest_path to chatlist when unzip
fixes jsonkenl#128
1 parent 4dbebf2 commit 3090797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/xlsxir/unzip.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ defmodule Xlsxir.Unzip do
151151
end
152152

153153
defp extract_from_zip(path, file_list, :memory), do: :zip.extract(path, [{:file_list, file_list}, :memory])
154-
defp extract_from_zip(path, file_list, {:file, dest_path}), do: :zip.extract(path, [{:file_list, file_list}, {:cwd, dest_path}])
154+
defp extract_from_zip(path, file_list, {:file, dest_path}), do: :zip.extract(path, [{:file_list, file_list}, {:cwd, to_charlist(dest_path)}])
155155

156156
defp build_xml_files(files_list) do
157157
files_list

0 commit comments

Comments
 (0)