Creates a zip archive that contains the files and directories from the specified directory.
Namespace:
T.Toolkit
Assembly: T.Toolkit (in T.Toolkit.dll)
Assembly: T.Toolkit (in T.Toolkit.dll)
Parameters
- sourceDirectoryName
-
Type: string
The path to the directory to be archived, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.
- destinationArchiveFileName
-
Type: string
The path of the archive to be created, specified as a relative or absolute path. A relative path is interpreted as relative to the current working directory.
Return Value
Type: stringIf success returns null else string containg error