private boolean writeProjectDirs(JarWriter writer, TaskMonitor monitor) {
		File projectFolder = project.getProjectLocator().getProjectDir();
		String[] names = projectFolder.list();
		for (int i = 0; i < names.length; i++) {
			if (monitor.isCancelled()) {
				return false;
			}
			File file = new File(projectFolder, names[i]);
			monitor.setMessage("Writing " + file.getAbsolutePath());
			if (file.isDirectory()) {
				if (!writer.outputRecursively(file, "", monitor)) {
					return false;
				}
			}
		}
		return true;
	}
Write project out to the jar file.
@param monitor monitor that can be cancelled
@return true if no errors occurred within the JarWriter object
@throws IOException
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/archive/ArchiveTask.java