Added support for retrieving zip progress information.

No additional information required.
This commit is contained in:
David Evans
2017-01-21 01:05:45 +00:00
parent 76ca4b3293
commit 0c98af7f9e
2 changed files with 11 additions and 1 deletions
+10 -1
View File
@@ -519,6 +519,15 @@
+ (BOOL)createZipFileAtPath:(NSString *)path withContentsOfDirectory:(NSString *)directoryPath keepParentDirectory:(BOOL)keepParentDirectory withPassword:(nullable NSString *)password{
return [self createZipFileAtPath:password
withContentsOfDirectory:directoryPath
keepParentDirectory:keepParentDirectory
withPassword:password
andProgressHandler:nil
];
}
+ (BOOL)createZipFileAtPath:(NSString *)path withContentsOfDirectory:(NSString *)directoryPath keepParentDirectory:(BOOL)keepParentDirectory withPassword:(nullable NSString *)password andProgressHandler:(void(^ _Nullable)(NSUInteger entryNumber, NSUInteger total))progressHandler {
BOOL success = NO;
NSFileManager *fileManager = nil;
@@ -813,4 +822,4 @@
return date;
}
@end
@end