flink-instrumentation/workspace/flink-1.4.1-instrumented/flink-1.4.1/flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobUtils.java
/**
	 * Makes sure a given directory exists by creating it if necessary.
	 *
	 * @param dir
	 * 		directory to create
	 *
	 * @throws IOException
	 * 		if creating the directory fails
	 */
Makes sure a given directory exists by creating it if necessary.
@param dir
directory to create

@throws IOException
if creating the directory fails
Makes sure a given directory exists by creating it if necessary . @param dir directory to create @throws IOException if creating the directory fails
private static void mkdirTolerateExisting(final File dir) throws IOException {
		if (!dir.mkdirs() && !dir.exists()) {
			throw new IOException(
				"Cannot create directory '" + dir.getAbsolutePath() + "'.");
		}
	}
private static void mkdirTolerateExisting ( final File dir ) throws IOException { if ( ! dir . mkdirs ( ) && ! dir . exists ( ) ) { throw new IOException ( "Cannot create directory '" + dir . getAbsolutePath ( ) + "'." ) ; } }
Makes sure a given directory exists by creating it if necessary.
Makes sure a given directory exists by creating it if necessary .
// note: thread-safe create should try to mkdir first and then ignore the case that the //       directory already existed