Subversion Repository Public Repository

litesoft

Diff Revisions 313 vs 314 for /trunk/Java/ScarPlus/src/com/esotericsoftware/utils/Util.java

Diff revisions: vs.
  @@ -178,6 +178,18 @@
178 178 }
179 179
180 180 /**
181 + * Creates the directories in the specified path.
182 + */
183 + public static String mkdir( String path )
184 + {
185 + if ( new File( path = assertNotEmpty( "path", path ) ).mkdirs() )
186 + {
187 + LOGGER.trace.log( "Created directory: ", path );
188 + }
189 + return path;
190 + }
191 +
192 + /**
181 193 * Deletes a directory and all files and directories it contains.
182 194 */
183 195 public static boolean delete( File pFile )