@Nonnull
	private WorkspaceExporter createResourceExporter(@Nonnull WorkspaceResource resource, @Nonnull Path path) {
		WorkspaceCompressType compression = exportConfig.getCompression().getValue();
		WorkspaceExportOptions options;
		PathWorkspaceExportConsumer exportConsumer = new PathWorkspaceExportConsumer(path);
		if (resource instanceof WorkspaceDirectoryResource) {
			options = new WorkspaceExportOptions(WorkspaceOutputType.DIRECTORY, exportConsumer);
		} else if (resource instanceof WorkspaceFileResource) {
			options = new WorkspaceExportOptions(compression, WorkspaceOutputType.FILE, exportConsumer);
		} else {
			options = new WorkspaceExportOptions(compression, WorkspaceOutputType.FILE, exportConsumer);
		}
		options.setBundleSupporting(exportConfig.getBundleSupportingResources().getValue());
		options.setCreateZipDirEntries(exportConfig.getCreateZipDirEntries().getValue());
		return options.create();
	}
Export the given file.

@param fileInfo
		File to export.
recaf-ui/src/main/java/software/coley/recaf/workspace/PathExportingManager.java