【向火龙果、大胡子、宝哥等高手提问】一次性创建多个根文件夹
加班到现在,╮(╯▽╰)╭
最近的项目在做文件夹的移动
我用以下方法做的,但是无法实现 一次性创建多个根文件夹
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(); } }}