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
Can't read file using NSData(contentsOfURL: options:) #293
Comments
I also encountered this problem, please test. |
Still having an issue? If you are having issues on the NSData() part I'm wondering if you checked to make sure file was at the path. Reopen if still having an issue. |
@jhudsonWA I tested the file from @zxl777 and I reproduced the issue:
My code was:
|
OK, apparently @zxl777 files inside the archive have no read permission, and our We respect the original permissions because of SSZipArchive.m line 418:
|
@jhudsonWA maybe we could provide an option that will set all uncompressed files to read+write, like Archive Utility is doing? See #348 |
@ravikiran-Conferra @zxl777 I successfully workaround the permissions with:
I've also post it as a StackOverflow answer on https://stackoverflow.com/a/45048822/1033581 |
@Coeur I like the idea of providing an option/override with the default add read+write, lets add it for 2.0 |
I'm using SSZipArchive to unzip the file from the server. Problem is after unzipping i am not able to read the file i am getting the following error The file “UnZippedFile” couldn’t be opened because you don’t have permission to view it(UnZippedFile is the file name given by me).
Here is my code
The text was updated successfully, but these errors were encountered: