日期:2014-05-20 浏览次数:20858 次
package jp.co.hitachi_mp.finance.hmp_sss.scan.test; import java.io.File; import jp.co.hitachi_mp.finance.hmp_sss.scan.businessLogic.JSAKAD0200BusinessLogic; public class TestDate { public static void main(String[] args) { newFolder("c:\\test\\1\\2"); } public static void newFolder(String folderPath) { try { String filePath = folderPath; filePath = filePath.toString(); File myFilePath = new File(filePath); if (!myFilePath.exists()) { myFilePath.mkdir(); } } catch (Exception e) { System.out.println("新建目录操作出错 "); e.printStackTrace(); } } }