private static File checkCreateDirectory(final File dir) throws IOException {
		if (!dir.mkdirs()) {
			throw new IOException(MSG_CANT_CREATE + dir);
		}
		return dir;
	}
private static File checkCreateDirectory(final File dir) throws IOException {
		if (!dir.mkdirs()) {
			throw new IOException(MSG_CANT_CREATE + dir);
		}
		return dir;
	}
private static File checkCreateDirectory ( final File dir ) throws IOException { if ( ! dir . mkdirs ( ) ) { throw new IOException ( MSG_CANT_CREATE + dir ) ; } return dir ; }
Checks if directory can be created. Throws IOException if it cannot.
<p>
This actually creates directory (and its ancestors) (as per {@link File#mkdirs()} }).

@param dir Directory
@throws IOException if directory cannot be created.
Checks if directory can be created . Throws IOException if it cannot . <p > This actually creates directory ( and its ancestors ) ( as per { @link File#mkdirs () } } ) .