I have used :zip.unzip/2
to perform unzip operation, it is supposed to extract one file, however, __MACOSX
is created for some reasons. Any idea about it?
iex> :zip.unzip('/tmp/archive.zip', [{:cwd, '/tmp/extracted/'}]) |> IO.inspect()
{:ok,
['/tmp/extracted/01.log',
'/tmp/extracted/__MACOSX/._01.log']}