File file = new File(request.getSession().getServletContext().getRealPath("/") + "ExcelExportTempFolder");//如果该目录文件不存在 if (!file.exists() && !file.isDirectory()) { file.mkdirs(); }
创建新目录
原文:http://www.cnblogs.com/1023linlin/p/6296870.html