I’m trying to unzip a file, called ‘resources.zip’ and when I do I get this error.
java.io.FileNotFoundException: C:\Users\User\AppData\Roaming\VAPOUR\Destiny\resources (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at classes.a.extractFolder(a.java:198)
On line 198… It’s;
OutputStream outStream = new FileOutputStream(output2.toString());
If you need more, I can always add some! 🙂 Thanks for the help 🙂
if you are calling “outputs.mkdirs()” before attempting to write the file, then the problem is that you are creating a directory which is the name of the file you are attempting to write.
in order to create the dir and then the file, do something like: