public static boolean mkdirs(File dir) {
		if (createDir(dir)) {
			return true;
		}
		File canonFile = null;
		try {
			canonFile = dir.getCanonicalFile();
		}
		catch (IOException e) {
			return false;
		}
		File parent = canonFile.getParentFile();
		return (parent != null) && (mkdirs(parent) && createDir(canonFile));
	}
Make all directories in the full directory path specified. This is a
replacement for the File.mkdirs() which fails due to a problem with the
File.exists() method with remote file systems on Windows. After renaming
a directory, the exists() method frequently reports the old directory as
still existing. In the case of File.mkdirs() the recreation of the old
directory would fail. The File.mkdir() method does not perform this
check.

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