Skip to content

Commit

Permalink
convert dest_path to chatlist when unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
fishtreesugar authored and nathany-copia committed Sep 26, 2024
1 parent ae373e5 commit 0ac500d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xlsxir/unzip.ex
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ defmodule Xlsxir.Unzip do
end

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

defp build_xml_files(files_list) do
files_list
Expand Down

0 comments on commit 0ac500d

Please sign in to comment.