This commit is contained in:
lixiaopeng
2020-12-20 17:08:32 +08:00
parent 62af5e1978
commit b1e7582531
5 changed files with 36 additions and 65 deletions

View File

@@ -43,7 +43,6 @@ fun deletePicFile(filePath: String?): Boolean {
//删除某个目录下所有文件
fun deleteAllFile(file: File?) { //判断文件不为null或文件目录存在
if (file == null || !file.exists()) {
Log.e("liyz", "文件删除失败,请检查文件路径是否正确")
return
}
//取得这个目录下的所有子文件对象