**/\r
public static void newFolder(String folderPath) throws Exception {\r
folderPath = Tools.convertPathToCurrentOsType(folderPath);\r
- String temp = "";\r
- while (folderPath.length() > 0) {\r
- if (folderPath.indexOf(DataType.FILE_SEPARATOR) > -1) {\r
- temp = temp + folderPath.substring(0, folderPath.indexOf(DataType.FILE_SEPARATOR));\r
- if (temp.endsWith(":")) {\r
- temp = Tools.addFileSeparator(temp);\r
- folderPath = folderPath.substring(folderPath.indexOf(DataType.FILE_SEPARATOR) + DataType.FILE_SEPARATOR.length());\r
- continue;\r
- }\r
- temp = Tools.addFileSeparator(temp);\r
- folderPath = folderPath.substring(folderPath.indexOf(DataType.FILE_SEPARATOR) + DataType.FILE_SEPARATOR.length()); \r
- } else {\r
- temp = Tools.addFileSeparator(temp) + folderPath;\r
- folderPath = "";\r
- }\r
- File f = new File(temp);\r
- if (!f.exists()) {\r
- f.mkdir();\r
- }\r
- }\r
+ File f = new File(folderPath);\r
+ f.mkdirs();\r
}\r
\r
/**\r