public static boolean createDir(File dir) {
		if (dir.isDirectory()) {
			return true;
		}
		dir.mkdir();
		return dir.isDirectory();
	}
Ensures the specified leaf directory exists.
<p>
Does not create any missing parent directories.  See {@link #mkdirs(File)} instead.
<p>
Takes into account race conditions with external threads/processes
creating the same directory at the same time.

@param dir The directory to create.
@return True If the directory exists when this method completes; otherwise, false.
Ghidra/Framework/Utility/src/main/java/utilities/util/FileUtilities.java