From 63659f1bbfe499ea07aef61f1d27f15eb209a4c0 Mon Sep 17 00:00:00 2001 From: jiangbenfu Date: Wed, 23 Jun 2021 21:22:59 +0800 Subject: [PATCH] =?UTF-8?q?codecheck=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yanzhenjie/andserver/util/FileUtils.java | 9 ++++++--- entry/src/main/resources/rawfile/web/js/jquery-form.js | 1 - 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/entry/src/main/java/com/yanzhenjie/andserver/util/FileUtils.java b/entry/src/main/java/com/yanzhenjie/andserver/util/FileUtils.java index 7b38013..767f4b1 100644 --- a/entry/src/main/java/com/yanzhenjie/andserver/util/FileUtils.java +++ b/entry/src/main/java/com/yanzhenjie/andserver/util/FileUtils.java @@ -91,7 +91,8 @@ public class FileUtils { try { boolean isPath = myFolderPath.exists(); if (!isPath) { - myFolderPath.mkdir(); + boolean pathDel = myFolderPath.mkdir(); + System.out.println("path delete " + pathDel); } } catch (Exception e) { e.printStackTrace(); @@ -140,13 +141,15 @@ public class FileUtils { File file = files[i]; boolean isFile = file.isFile(); if (isFile) { - file.delete(); + boolean fileDel = file.delete(); + System.out.println("file delete " + fileDel); } else { deleteDir(file); } } } - dir.delete(); + boolean dirDel = dir.delete(); + System.out.println("dir delete " + dirDel); } /** diff --git a/entry/src/main/resources/rawfile/web/js/jquery-form.js b/entry/src/main/resources/rawfile/web/js/jquery-form.js index 2b6c4d6..044549b 100644 --- a/entry/src/main/resources/rawfile/web/js/jquery-form.js +++ b/entry/src/main/resources/rawfile/web/js/jquery-form.js @@ -668,7 +668,6 @@ $.fn.ajaxSubmit = function(options) { } - //log('response detected'); var docRoot = doc.body ? doc.body : doc.documentElement; xhr.responseText = docRoot ? docRoot.innerHTML : null; xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc; -- Gitee