-
Notifications
You must be signed in to change notification settings - Fork 160
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
FileNotFound Exception while unzipping the file in Android #311
Comments
Can you attach the file you're using? It's hard to tell what's going wrong without the file and the code. |
Same here. |
Any updates on this? Currently getting the same error (ENOENT).
It's only happening on some phones for me (e.g., Samsung Galaxy S24 Ultra). With other Android and iOS apps the zip completes successfully. Here is an example of the code I'm running with logs:
|
I solved my problem by looking at the content of the zip: on the new
android it seems when you have a subfolder with images/ inside for example,
this will probably fail because you don't have the permissions to access to
the image of the user.
Mit freundlichen Grüßen / Bien cordialement / Best regards,
Cédric JUNG
Le mar. 11 mars 2025 à 17:14, Ryan Sheppard ***@***.***> a
écrit :
… Any updates on this? Currently getting the same error (ENOENT).
java.io.FileNotFoundException: /storage/emulated/0/Download/canada.zip:
open failed: ENOENT (No such file or directory): Error:
java.io.FileNotFoundException: /storage/emulated/0/Download/canada.zip:
open failed: ENOENT (No such file or directory)
It's only happening on some phones for me (e.g., Samsung Galaxy S24
Ultra). With other Android and iOS apps the zip completes successfully.
—
Reply to this email directly, view it on GitHub
<#311 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIOFSY6S6RAGYMDMQBYWUL2T4DWLAVCNFSM6AAAAABYZK5BG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMJUHEZTIMRVGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
[image: ryanshepps]*ryanshepps* left a comment
(mockingbot/react-native-zip-archive#311)
<#311 (comment)>
Any updates on this? Currently getting the same error (ENOENT).
java.io.FileNotFoundException: /storage/emulated/0/Download/canada.zip:
open failed: ENOENT (No such file or directory): Error:
java.io.FileNotFoundException: /storage/emulated/0/Download/canada.zip:
open failed: ENOENT (No such file or directory)
It's only happening on some phones for me (e.g., Samsung Galaxy S24
Ultra). With other Android and iOS apps the zip completes successfully.
—
Reply to this email directly, view it on GitHub
<#311 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIOFSY6S6RAGYMDMQBYWUL2T4DWLAVCNFSM6AAAAABYZK5BG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMJUHEZTIMRVGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It appears the issue is with
Unfortunately I do not understand zip4j enough to continue. |
Describe the bug
Whenever i try to unzip file to a specific destination using unZip function, It throws the warning fileNotfound. when i checked for the zip file in the respective path, it's present in the file system.
React-Native : 0.63.3
react-native-zip-archive: 7.0.0
The text was updated successfully, but these errors were encountered: