/** |
* |
* 删除文件夹 |
* |
* @param folderPath |
* folderPath 文件夹完整绝对路径 |
* |
*/ |
public static void delFolder(String folderPath) throws Exception { |
// 删除完里面所有内容 |
delAllFile(folderPath); |
String filePath = folderPath; |
filePath = filePath.toString(); |
File myFilePath = new File(filePath); |
// 删除空文件夹 |
myFilePath.delete(); |
} |