1.在外存创建多目录文件夹时,需要一级一级创建,否则创建无效.
</pre><pre name="code" class="java">/** * Create folder * @param path folder path */ public static void createDir(String path){ File filePath = new File(path); if (!filePath.exists()) { filePath.mkdir(); } }
</pre><pre name="code" class="java">createDir(parentPath); createDir(childPath);