Click or drag to resize

ICSharpWorkerZipFiles Methode

Packt die Files aus "filePathes" in ein Archiv "zipPathAndFile". Optional kann ein Passwort mitgegeben werden.

Namensraum: NetEti.FileTools.Zip
Assembly: NetEti.ZipAccess (in NetEti.ZipAccess.dll) Version: 1.0.0+2996eef2bd6ad690f9f33134f6dd182957ec1b3e
Syntax
public List<ZippedFileInfo> ZipFiles(
	string zipPathAndFile,
	string commonRootPath,
	string password,
	bool packRootAsDir,
	string[] filePathes
)

Parameter

zipPathAndFile  String
Pfad und Name des Archivs.
commonRootPath  String
Pfad und Name des Verzeichnisses, unterhalb dem sich alle zu packenden Dateien/Verzeichnisse befinden müssen.
password  String
Passwort für das Archiv oder null.
packRootAsDir  Boolean
Bei true wird das Root-Verzeichnis mit eingepackt, bei false nur die enthaltenen Dateien/Verzeichnisse.
filePathes  String
String-Array mit Pfaden der zu packenden Dateien/Verzeichnissen.

Rückgabewert

ListZippedFileInfo
List<ZippedFileInfo> = Infos über alle Archiv_Einträge.
Siehe auch