static boolean makeDirectories(final File dirToMake)
	  {
	    try {
	      Boolean result = getInstance().doPrivileged(
	        new PrivilegedAction<Boolean>() {
	          public Boolean run() {
	            return Boolean.valueOf(dirToMake.mkdirs());
	          }
	        }
	      );
	      return result.booleanValue();
	    }
	    catch (SecurityException se) {
	    	// TODO: Add logging here but be careful since this code is used in logging logic itself
	    	//       and may result in an indefinite loop.
	    	return false;
	    }
	  }
static boolean makeDirectories ( final File dirToMake ) { try { Boolean result = getInstance ( ) . doPrivileged ( new PrivilegedAction < Boolean > ( ) { public Boolean run ( ) { return Boolean . valueOf ( dirToMake . mkdirs ( ) ) ; } } ) ; return result . booleanValue ( ) ; } catch ( SecurityException se ) { return false ; } }
Using privileged java security, create the directory named by the abstract pathname in the
specified <code>File</code>, including any intermediate and nonexistent directories.
<p>
@param dirToMake a non-null <code>File</code> object whose abstract pathname represents
the fully qualified directory to create.
@return true is returned if and only if all necessary directories were created. Otherwise
false is returned. If a SecurityException is encountered, the exception is logged and
absorbed and false is returned.