2 package org
.de
.metux
.util
;
8 public static void mkdir_recursive(String name
)
10 String absdir
= new File(name
).getAbsolutePath();
11 String
[] pathnames
= StrSplit
.split(absdir
,"/");
13 for (int x
=0; x
<pathnames
.length
; x
++)
15 mypath
+= "/"+pathnames
[x
];
16 // System.err.println("Creating: "+mypath);
17 new File(mypath
).mkdir();