From ab77a21ffc3003b7c916543b18acf72ceb222160 Mon Sep 17 00:00:00 2001 From: Joshua Hudson Date: Tue, 27 Sep 2016 20:38:52 -0700 Subject: [PATCH] Revert "Extended to allow passing in directory or file to unzip to" --- SSZipArchive/SSZipArchive.m | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/SSZipArchive/SSZipArchive.m b/SSZipArchive/SSZipArchive.m index a3fb7b2..1b9d073 100755 --- a/SSZipArchive/SSZipArchive.m +++ b/SSZipArchive/SSZipArchive.m @@ -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) {