 | MSCompressionWorkerZipFiles method |
Packs the files from "filePathes" into an archive "zipPathAndFile".
Optionally, a password can be entered.
Namespace: NetEti.FileTools.ZipAssembly: NetEti.ZipAccess (in NetEti.ZipAccess.dll) Version: 1.0.0+90532d84a01ea1dad6525ec1859a76670aba8306
Syntaxpublic Cunning<ZippedFileInfo> ZipFiles(
string zipPathAndFile,
string commonRootPath,
string password,
bool packRootAsDir,
string[] filePaths
)
Public Function ZipFiles (
zipPathAndFile As String,
commonRootPath As String,
password As String,
packRootAsDir As Boolean,
filePaths As String()
) As Cunning(Of ZippedFileInfo)
public:
virtual Cunning<ZippedFileInfo^>^ ZipFiles(
String^ zipPathAndFile,
String^ commonRootPath,
String^ password,
bool packRootAsDir,
array<String^>^ filePaths
) sealed
abstract ZipFiles :
zipPathAndFile : string *
commonRootPath : string *
password : string *
packRootAsDir : bool *
filePaths : string[] -> Cunning<ZippedFileInfo>
override ZipFiles :
zipPathAndFile : string *
commonRootPath : string *
password : string *
packRootAsDir : bool *
filePaths : string[] -> Cunning<ZippedFileInfo> Parameters
- zipPathAndFile String
- Path and name of the archive.
- commonRootPath String
- Path and name of the directory under which all files/directories to be packed must be located.
- password String
- Password for the archive or null.
- packRootAsDir Boolean
- If true, the root directory is also packed, if false, only the files/directories contained are packed.
- filePaths String
- String array with paths of the files/directories to be packed.
Return value
CunningZippedFileInfoList<ZippedFileInfo> = Info about all archive entries.
See also