Merge pull request #290 from ZipArchive/revert-281-dev-fileoption

Revert "Extended to allow passing in directory or file to unzip to"
This commit is contained in:
Joshua Hudson
2016-09-27 20:39:50 -07:00
committed by GitHub
+1 -10
View File
@@ -272,16 +272,7 @@
strPath = [strPath stringByReplacingOccurrencesOfString:@"\\" withString:@"/"];
}
NSString *fullPath;
BOOL isDir = NO;
if([[NSFileManager defaultManager]
fileExistsAtPath:destination isDirectory:&isDir] && isDir){
fullPath = [destination stringByAppendingPathComponent:strPath];
}
else {
fullPath = destination;
}
NSString *fullPath = [destination stringByAppendingPathComponent:strPath];
NSError *err = nil;
NSDictionary *directoryAttr;
if (preserveAttributes) {