Click or drag to resize

ICSharpWorkerZipFiles method

Packs the files from "filePathes" into an archive "zipPathAndFile". Optionally, a password can be entered.

Namespace: NetEti.FileTools.Zip
Assembly: NetEti.ZipAccess (in NetEti.ZipAccess.dll) Version: 1.0.0+90532d84a01ea1dad6525ec1859a76670aba8306
Syntax
public Cunning<ZippedFileInfo> ZipFiles(
	
	string zipPathAndFile,
	
	string commonRootPath,
	
	string password,
	
	bool packRootAsDir,
	
	string[] filePaths
)

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

CunningZippedFileInfo
List<ZippedFileInfo> = Info about all archive entries.
See also