Adds specified local files or directories to a directory within the ZIP archive.
Assembly: Rebex.Zip (in Rebex.Zip.dll)
Public Function Add ( _ sourcePathOrMask As , _ archiveDirectoryPath As _ ) As ArchiveOperationResult
public ArchiveOperationResult Add( sourcePathOrMask, archiveDirectoryPath )
Path (with or without a mask) to an external (local) file or directory.
Path to an archive directory where to add files. Null reference (Nothing in Visual Basic) means root.
Return ValueOperation result.
|sourcePathOrMask is null.|
|The specified path is empty or contains invalid characters. -or- Illegal use of wildcards in path. -or- The system could not retrieve the absolute path.|
|Archive is not opened for writing. -or- sourcePathOrMask refers to the ZIP archive itself.|
|Archive was already disposed.|
|Path is in an invalid format.|
|sourcePathOrMask exceeds the maximum length defined by system. -or- The target path is longer than 65.535 characters.|
|The caller does not have the required permissions.|
|Access to the file is denied.|
|An I/O error occurred.|
|Rebex.IO.Compression..::..ZipException||Cannot perform the requested operation, or the operation was canceled (see ProblemType for detailed information).|