private static File createDir(File dir) throws IOException {
		if (dir != null) {
			if (!FileUtilities.mkdirs(dir)) {
				throw new IOException("Failed to create directory: " + dir);
			}
			FileUtilities.setOwnerOnlyPermissions(dir);
		}
		return dir;
	}
Creates the given {@link File directory} if it does not exist, and sets its permissions to
owner-only

@param dir The directory to create
@return The given directory
@throws IOException if the directory failed to be created
Ghidra/Framework/Utility/src/main/java/utility/application/ApplicationUtilities.java