public static void createDirs(File target) throws AdeUsageException {
  if (!target.exists() && !target.mkdirs() && !target.exists()) {
    throw new AdeUsageException("Failed creating directory " + target.getPath());
  }
}

public static void createDirs ( File target ) throws AdeUsageException { if ( ! target . exists ( ) && ! target . mkdirs ( ) && ! target . exists ( ) ) { throw new AdeUsageException ( "Failed creating directory " + target . getPath ( ) ) ; } }
create a directory , including all necessary parent directories if it does not exist .
