提交 063149e8 编写于 作者: M megagao

添加了文件删除的方法

上级 08c46eac
......@@ -205,6 +205,17 @@ public class FileUtil {
f2 = null;
}
/*public boolean deleteFile(String sPath) {
File file = new File(sPath);
// 路径为文件且不为空则进行删除
if (file.isFile() && file.exists()) {
file.delete();
}
return true;
} */
/*
*删除目录下的所有文件
**/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册