Fixing issue #98

This commit is contained in:
Douglas Bumby
2015-04-06 23:39:19 -04:00
parent c9d93d23e3
commit 88c2ab7516
+8 -2
View File
@@ -235,8 +235,7 @@
continue;
}
if(!fileIsSymbolicLink)
{
if (!fileIsSymbolicLink) {
FILE *fp = fopen((const char*)[fullPath UTF8String], "wb");
while (fp) {
int readBytes = unzReadCurrentFile(zip, buffer, 4096);
@@ -249,6 +248,13 @@
}
if (fp) {
if ([[[fullPath pathExtension] lowercaseString] isEqualToString:@"zip"]) {
NSLog(@"Unzipping nested .zip file: %@", [fullPath lastPathComponent]);
if ([self unzipFileAtPath:fullPath toDestination:[fullPath stringByDeletingLastPathComponent] overwrite:overwrite password:password error:nil delegate:nil]) {
[[NSFileManager defaultManager] removeItemAtPath:fullPath error:nil];
}
}
fclose(fp);
// Set the original datetime property