private boolean checkInput() {
		String pathname = getArchivePathName();
		if ((pathname == null) || (pathname.equals(""))) {
			setStatusText("Specify an archive file.");
			return false;
		}

		File file = new File(pathname);
		String name = file.getName();
		if (!NamingUtilities.isValidProjectName(name)) {
			setStatusText("Archive name contains invalid characters.");
			return false;
		}
		return true;
	}
Check the entry to determine if the user input is valid for archiving
a project.

@return boolean true if input is OK
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/archive/ArchiveDialog.java