public static File createTempDirectory(String name) throws IOException {
		String tempTestRootDirname = "generic.test.temp.dir";

		// NOTE: this call is predicated on the fact that each test file that is run will get
		//       a unique test directory when running in parallel mode
		deleteSimilarTempFiles(tempTestRootDirname);

		String testTempDir = getTestDirectoryPath();
		Path tempDirPath = Paths.get(testTempDir);
		Path tempRootDirPath = Files.createTempDirectory(tempDirPath, tempTestRootDirname);
		File tempRootDir = tempRootDirPath.toFile();
		tempRootDir.deleteOnExit();

		FileUtilities.deleteDir(tempRootDir);// clean out any existing data; this should have no data though
		Path userDir = tempRootDirPath.resolve(name);
		Files.createDirectories(userDir);
		File file = userDir.toFile();
		file.deleteOnExit();
		return file;
	}
Creates a <b>sub-directory</b> with the given name as a child of the Java temp directory. The
given name will be the prefix of the new directory name, with any additional text as created
by {@link Files#createTempDirectory(Path, String, java.nio.file.attribute.FileAttribute...)}.
Any left-over test directories will be cleaned-up before creating the new directory.

<p>
Note: you should not call this method multiple times, as each call will cleanup the
previously created directories.

@param name the name of the directory to create
@return the newly created directory
@throws IOException of there is a problem creating the new directory
Ghidra/Framework/Generic/src/main/java/generic/test/AbstractGenericTest.java