【文件属性】:
文件名称:java删除文件夹代码
文件大小:509B
文件格式:RAR
更新时间:2013-03-23 12:41:44
java删除文件 java删除文件夹
把分降低吧 呵呵
boolean flag = false;
File file = new File(path);
if (!file.exists()) {
return flag;
}
if (!file.isDirectory()) {
return flag;
}
String[] tempList = file.list();
File temp = null;
for (int i = 0; i < tempList.length; i++) {
if (path.endsWith(File.separator)) {
temp = new File(path + tempList[i]);
部分代码显示
【文件预览】:
java删除文件夹.txt