标签:io java for 文件 c amp r as file
package com.jfinal.kit;
import java.io.File;
public class FileKit
{
public static void delete(File file)
{
if ((file != null) && (file.exists())) { if (file.isFile()) { file.delete(); } else if (file.isDirectory()) { File[] files = file.listFiles(); for (int i = 0; i < files.length; i++) { delete(files[i]); } } file.delete(); }
}
}
标签:io java for 文件 c amp r as file
原文地址:http://my.oschina.net/u/946001/blog/316767