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

Caller of FileManager's unzipItem(at:to:skipCRC32:progress:preferredEncoding:) need to know what was unzipped #213

Open
valeriyvan opened this issue Feb 21, 2021 · 1 comment

Comments

@valeriyvan
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In most use cases of FileManager's unzipItem(at:to:skipCRC32:progress:preferredEncoding:) callers need to know what was unzipped. Now this can be achieved by reading contents of destination. That's extra file operation.

Describe the solution you'd like
This method should return an array of URL's of unzipped items.

Describe alternatives you've considered
Alternatively method might have optional delegate or callback parameter.

Additional context
n/a

@weichsel
Copy link
Owner

I think the best way to handle this would be to provide a delegate with a similar API as the FileManager delegate.
E.g. something like fileManager(FileManager, didUnzipEntry: Entry, to: URL).

This would also solve: #54

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