Zip Directory Activity

Description:

Creates a zip archive from a directory of source files.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.CodeActivity
      Geocortex.Workflow.Activities.ZipDirectory

Function:

This activity zips the contents of a directory into a single zip archive.

In a Workflow:

The Zip Directory activity is useful when a workflow produces multiple files as output in a directory and you wish to provide those files to the end user as a single zip file.

Properties:

Name Description

In Arguments

File Filter

A regular expression file filter to apply. For example: "\.txt$" for only files ending in ".txt". By default all files are included.

Include Subdirectories

True to include the current directory and all its subdirectories; False to include only the current directory. The default if False.

Password

A password for the zip archive.

Source Directory

The source directory containing the files to zip.

Zip File Path

The path of the zip file to create.

The activity throws a System.IO.IOException if the zip file path is contained within the source directory.

Misc

Display Name

ZipDirectory

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Use Zip64

Whether to use ZIP64 extensions when saving the zip archive. The default value AsNecessary is appropriate in most cases.

Version Information:

Supported from: Geocortex Essentials 4.2.