Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No High Level APIs for Most Probable Use Cases #157

Open
levigroker opened this issue Jan 24, 2017 · 3 comments
Open

No High Level APIs for Most Probable Use Cases #157

levigroker opened this issue Jan 24, 2017 · 3 comments

Comments

@levigroker
Copy link

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
Copy link
Author

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

@mickeyl
Copy link

mickeyl commented Mar 27, 2018

Could you create a pull request, please?

@levigroker
Copy link
Author

Ok. Will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants