[]
Adds the content of a folder to the current zip file.
public void AddFolder(string path)
| Type | Name | Description |
|---|---|---|
| string | path | The full path of the folder to be added to the zip file. |
This method adds all files and sub folders to the zip file.
Adds the content of a folder to the current zip file.
public void AddFolder(string path, string searchPattern)
| Type | Name | Description |
|---|---|---|
| string | path | The full path of the folder to be added to the zip file. |
| string | searchPattern | A mask that specifies which files to add. |
If the folder contains sub folders, those are also added to the zip file.
Adds the content of a folder to the current zip file.
public void AddFolder(string path, string searchPattern, bool includeSubfolders)
| Type | Name | Description |
|---|---|---|
| string | path | The full path of the folder to be added to the zip file. |
| string | searchPattern | A mask that specifies which files to add. |
| bool | includeSubfolders | True to include sub folders, false to include only files at the root level. |