FileOutputStream throws FileNotFoundException when UnZipping

前端 未结 7 1774
温柔的废话
温柔的废话 2020-12-11 04:19

I\'m using a class that I found through google to unzip a .zip file.. The .zip contains files and folder. The problem is that FileOutputStream throws

7条回答
  •  情歌与酒
    2020-12-11 05:10

    FileOutputStream will throw FileNotFoundException if the directory(s) involved don't exist. I don't see any directory-creation code here, or even any code to check if Path exists, so that's probably what's going on.

提交回复
热议问题