I'm using the following code on Mac using Mono to unzip a zip file. The zip file contains entries under directories (for example foo/bar.txt
). However, in the unzipped directory, instead of creating a directory foo
with a file bar.txt
, FastZip creates a file foo\bar.txt
. How do I get around this?
FastZip fz = new FastZip();
string filePath = @"path\to\myfile.zip";
fz.ExtractZip(filePath, @"path\to\unzip\to", null);
This creates a file foo\bar.txt
in path\to\unzip\to
.