标签:android blog java for 文件 2014 log 代码 as
//删除文件夹 private void deleteDirectory(File folder) { if (folder.exists()) { File[] files = folder.listFiles(); if (files == null) { return; } for (int i = 0; i < files.length; i++) { if (files[i].isDirectory()) { deleteDirectory(files[i]); } else { files[i].delete(); } } } folder.delete(); }
标签:android blog java for 文件 2014 log 代码 as
原文地址:http://blog.csdn.net/lfdfhl/article/details/41047647