|
|
|
@ -22,6 +22,7 @@ import cokr.xit.base.code.CommonCode;
|
|
|
|
|
import cokr.xit.base.file.FileInfo;
|
|
|
|
|
import cokr.xit.base.file.web.FileInfoFactory;
|
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
|
import cokr.xit.fims.cmmn.CmmnUtil;
|
|
|
|
|
import cokr.xit.fims.crdn.Crdn;
|
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
|
import cokr.xit.fims.crdn.dao.CrdnInstMapper;
|
|
|
|
@ -194,11 +195,10 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
|
String entType = hReq.getParameter("entType");
|
|
|
|
|
String fileName = hReq.getParameter("fileName");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(entType.equals("이노")) {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
Stream<Path> walk = Files.walk(Paths.get("files"+File.separator+"tempForIno"));
|
|
|
|
|
|
|
|
|
|
List<String> deleteFilePaths = new ArrayList<String>();
|
|
|
|
@ -212,6 +212,8 @@ public class Crdn05Controller extends ApplicationController {
|
|
|
|
|
saved = (new File(deleteFilePath)).delete();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//빈 디렉토리 삭제
|
|
|
|
|
CmmnUtil.deleteEmptyDir(new File("files"+File.separator+"tempForIno"), false);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
throw new RuntimeException();
|
|
|
|
|
}
|
|
|
|
|