private void scanDataDirectory(String[] params, int slot)
			throws IllegalArgumentException, IOException {
		if (params.length <= slot) {
			throw new IllegalArgumentException("Missing data directory");
		}
		dataDirectory = new File(params[slot]);
		if (!dataDirectory.isDirectory()) {
			throw new IllegalArgumentException(
				"Data directory " + dataDirectory.getAbsolutePath() + " does not exist");
		}
		dataDirectory = dataDirectory.getCanonicalFile();
	}
Scan the PostgreSQL data directory from the command-line
Make sure the directory exists and establish the File object -dataDirectory-
@param params are the command-line arguments
@param slot is the position to retrieve the data directory argument
@throws IllegalArgumentException if the data directory is invalid
@throws IOException if the canonical file cannot be retrieved
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/BSimControlLaunchable.java