private void updateDirOnly(File directory, boolean force, boolean addToHistory) {
		if (!fileExists(directory)) {
			return;
		}

		if (!isDirectory(directory)) {
			throw new AssertException("Expected a directory and did not get one: " + directory);
		}

		File currentDirectory = currentDirectory();

		// if we are forcing the update, then just do it! ...or, if the new dir is not already
		// the current dir, then we need to update
		if (force || !directory.equals(currentDirectory)) {
			worker.schedule(new UpdateDirectoryContentsJob(directory, null, addToHistory));
			return;
		}

		// we only get here if the new dir is the current dir and we are not forcing an update
		// TODO this code causes unexpected behavior when in 'directories only' mode in that
		// this will cause the current directory to change.  The behavior can be seen by
		// putting this code back in and then running the tests.   No tests are failing with this
		// code removed.  We are leaving this code here for a couple releases in case we find
		// a code path that requires it.
		// setSelectedFileAndUpdateDisplay((isFilesOnly() ? null : directory));
	}
Updates the given directory and selects the given file.

@param directory The directory to load and update
@param fileToSelect The file to select after updating the dir (may be null).
@param forceUpdate True signals to force the directory to update, even if it is the current
       directory
@param addToHistory True signals to add the given directory to the navigation history
Ghidra/Framework/Docking/src/main/java/docking/widgets/filechooser/GhidraFileChooser.java