面试提了一个复制文件夹的编程题,结果我的电脑文件夹都是只读属性,程序悲催了
Exception in thread "main" java.io.FileNotFoundException: I:\A\b\新建文件夹 (拒绝访问。)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:97)
at com.itheima.Test15.copy(Test15.java:39)
at com.itheima.Test15.main(Test15.java:19)
这个问题咋解决,求大神 |
|