I have a password protected zipped file which contains another pw zipped file and I want to retrieve a xml file under a folder 0 inside the second zip. But I would like to have this xml in the root folder (args[0]), Do you have an idea ?
It is always extracting in root/0/project.xml and I want root/project.xml actually I want the xml in the same folder than the first zip.
using (ZipFile zip = ZipFile.Read(args[0])) {
zip.Password = "pass1";
zip.ExtractAll(".",ExtractExistingFileAction.OverwriteSilently);
using (ZipFile zip2 = ZipFile.Read("0.xtz"))
{
ZipEntry e = zip2["0/project.xml"];
e.ExtractWithPassword(".", ExtractExistingFileAction.OverwriteSilently, "pass2");
}
}