ZipZap icon indicating copy to clipboard operation
ZipZap copied to clipboard

No High Level APIs for Most Probable Use Cases

Open levigroker opened this issue 8 years ago • 3 comments

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?

levigroker avatar Jan 24 '17 20:01 levigroker

I have implemented this for my project and would appreciate understanding if such a pull request would be entertained.

levigroker avatar Mar 10 '17 19:03 levigroker

Could you create a pull request, please?

mickeyl avatar Mar 27 '18 15:03 mickeyl

Ok. Will do.

levigroker avatar Apr 12 '18 21:04 levigroker