 | ZipAccessZipFiles Methode |
Packt die Files aus "filePathes" in ein Archiv "zipPathAndFile".
Optional kann ein Passwort mitgegeben werden.
Namensraum: NetEti.FileTools.ZipAssembly: NetEti.ZipAccess (in NetEti.ZipAccess.dll) Version: 1.0.0+2996eef2bd6ad690f9f33134f6dd182957ec1b3e
Syntaxpublic List<ZippedFileInfo> ZipFiles(
string zipPathAndFile,
string commonRootPath,
string password,
bool packRootAsDir,
string[] filePathes
)
Public Function ZipFiles (
zipPathAndFile As String,
commonRootPath As String,
password As String,
packRootAsDir As Boolean,
filePathes As String()
) As List(Of ZippedFileInfo)
public:
virtual List<ZippedFileInfo^>^ ZipFiles(
String^ zipPathAndFile,
String^ commonRootPath,
String^ password,
bool packRootAsDir,
array<String^>^ filePathes
) sealed
abstract ZipFiles :
zipPathAndFile : string *
commonRootPath : string *
password : string *
packRootAsDir : bool *
filePathes : string[] -> List<ZippedFileInfo>
override ZipFiles :
zipPathAndFile : string *
commonRootPath : string *
password : string *
packRootAsDir : bool *
filePathes : string[] -> List<ZippedFileInfo>
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
ListZippedFileInfoList<ZippedFileInfo> = Infos über alle Archiv_Einträge.
Siehe auch