]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/FileOperation.java
1. Change ToolCode from text field to drop down list, and user can enter their custom...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / FileOperation.java
index b0802a60e81d43696596bb02e46076412f7f2754..7f15de8f8902daa45ea07f3c76939f1b642ed8fd 100644 (file)
@@ -40,26 +40,8 @@ public class FileOperation {
      **/\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