Open levigroker opened 7 years ago
Hi There,
As far as I can tell, and please correct me if I'm wrong, there are no high level APIs to perform the most probable use cases for a zip library, such as compress the file/directory found at a URL, decompress a given file URL or chunk of data.
Something along the lines of:
- (void)compressURL:(NSURL *)sourceURL destURL:(NSURL *)destURL completion:(void(^)(NSURL *outURL, NSError *error))completion; - (void)compressURL:(NSURL *)sourceURL completion:(void(^)(NSData *compressedData, NSError *error))completion; - (void)decompressFileURL:(NSURL *)compressedFile toDirectory:(NSURL *)destURL overwriting:(BOOL)overwriting completion:(void(^)(NSURL *outURL, NSError *error))completion; - (void)decompressData:(NSData *)compressedData toDirectory:(NSURL *)destURL overwriting:(BOOL)overwriting completion:(void(^)(NSURL *outURL, NSError *error))completion;
This seems like an intentional omission.
Would you entertain a pull request with some high level API like this?
I have implemented this for my project and would appreciate understanding if such a pull request would be entertained.
Could you create a pull request, please?
Ok. Will do.
Hi There,
As far as I can tell, and please correct me if I'm wrong, there are no high level APIs to perform the most probable use cases for a zip library, such as compress the file/directory found at a URL, decompress a given file URL or chunk of data.
Something along the lines of:
This seems like an intentional omission.
Would you entertain a pull request with some high level API like this?