From 6abbd980820761581b24fae8bbb6fd9f014d713f Mon Sep 17 00:00:00 2001 From: lagapollo Date: Mon, 7 Dec 2015 09:36:17 +0100 Subject: [PATCH 1/2] update SSZipArchive.h For a project, I need to write a folder into the zip archive. The method writeFolderAtPath: withFolderName: is only private and I need it from outside. I can't use class method because i'm creating the archive manually, i have multiple folders and multiples files to zip. --- SSZipArchive/SSZipArchive.h | 1 + 1 file changed, 1 insertion(+) diff --git a/SSZipArchive/SSZipArchive.h b/SSZipArchive/SSZipArchive.h index b18cab9..e68881d 100755 --- a/SSZipArchive/SSZipArchive.h +++ b/SSZipArchive/SSZipArchive.h @@ -50,6 +50,7 @@ - (instancetype)initWithPath:(NSString *)path; @property (NS_NONATOMIC_IOSONLY, readonly, getter = isOpen) BOOL open; - (BOOL)writeFile:(NSString *)path withPassword:(NSString *)password; +- (BOOL)writeFolderAtPath:(NSString *)path withFolderName:(NSString *)folderName - (BOOL)writeFileAtPath:(NSString *)path withFileName:(NSString *)fileName withPassword:(NSString *)password; - (BOOL)writeData:(NSData *)data filename:(NSString *)filename withPassword:(NSString *)password; @property (NS_NONATOMIC_IOSONLY, readonly, getter = isClosed) BOOL close; From 098a1ffa625cb697cdf25f6b5a5f2f75b04e2107 Mon Sep 17 00:00:00 2001 From: lagapollo Date: Mon, 7 Dec 2015 09:37:56 +0100 Subject: [PATCH 2/2] forgot semi-colon --- SSZipArchive/SSZipArchive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSZipArchive/SSZipArchive.h b/SSZipArchive/SSZipArchive.h index e68881d..fba2840 100755 --- a/SSZipArchive/SSZipArchive.h +++ b/SSZipArchive/SSZipArchive.h @@ -50,7 +50,7 @@ - (instancetype)initWithPath:(NSString *)path; @property (NS_NONATOMIC_IOSONLY, readonly, getter = isOpen) BOOL open; - (BOOL)writeFile:(NSString *)path withPassword:(NSString *)password; -- (BOOL)writeFolderAtPath:(NSString *)path withFolderName:(NSString *)folderName +- (BOOL)writeFolderAtPath:(NSString *)path withFolderName:(NSString *)folderName; - (BOOL)writeFileAtPath:(NSString *)path withFileName:(NSString *)fileName withPassword:(NSString *)password; - (BOOL)writeData:(NSData *)data filename:(NSString *)filename withPassword:(NSString *)password; @property (NS_NONATOMIC_IOSONLY, readonly, getter = isClosed) BOOL close;