private File getUnvalidatedDirectory() {
		// currently only allow selection of the current directory if we are in directory mode
		if (!isDirectoriesOnly()) {
			setStatusText("Please select a file");
			return null;
		}

		return currentDirectory();
	}
Gets a directory that has not been validated.  This method will only return a
 directory if the selection mode is DIRECTORIES_ONLY
Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/GhidraFileChooser.java