* Party solved* DzZipFile.locateFile() on Windows broken?
Totte
Posts: 13,970
do {filename = oZipFile.getCurrentFileName();debug("filename="+filename);var found = oZipFile.locateFile(filename);if (!found) {debug("### NOT FOUND ###");}} while(oZipFile.goToNextFile());
Om Mac OS X, this nicely shows all files in the zip, on Windows, I get ### NOT FOUND ### for all files.
Any special trick on Windows for finding the same path you just got from the zipFile?
This is just a cut down of the actual code that collect files in one place and the locate the in the zip later on for extraction.
Post edited by Totte on
Comments
Log from Mac OS X:
Log from Windows:
OK, workaround, extract all files while listing them, now it works on windows, with a small performance penalty. ExtractAll() didn't work either, just extracted root level directory and one sub directory, then it felt happy and exited the function. 4.10 and 4.11 public beta btw.