public AddDirectory ( string directoryName ) : |
||
directoryName | string | The name of the directory to add. |
return |
The name of the directory may be a relative path or a fully-qualified path. Any files within the named directory are added to the archive. Any subdirectories within the named directory are also added to the archive, recursively.
Top-level entries in the named directory will appear as top-level entries in the zip archive. Entries in subdirectories in the named directory will result in entries in subdirectories in the zip archive.
If you want the entries to appear in a containing directory in the zip archive itself, then you should call the AddDirectory() overload that allows you to explicitly specify a directory path for use in the archive.
For ZipFile
properties including Encryption,
public AddDirectory ( string directoryName ) : |
||
directoryName | string | The name of the directory to add. |
return |