Click or drag to resize

ICSharpWorker class

Function: Routines for packing and unpacking ZIP archives. Uses the ICSharpCode.SharpZipLib.dll.
Inheritance hierarchy
SystemObject
  NetEti.FileTools.ZipICSharpWorker

Namespace: NetEti.FileTools.Zip
Assembly: NetEti.ZipAccess (in NetEti.ZipAccess.dll) Version: 1.0.0+90532d84a01ea1dad6525ec1859a76670aba8306
Syntax
public class ICSharpWorker

The ICSharpWorker Type exposes the following members.

Constructors
 NameDescription of the
Public MethodICSharpWorkerinitializes a new instance of the ICSharpWorker class
Back to the top
Methods
 NameDescription of the
Public MethodAbortion Must be called in the external EventHandler, if the current process is to be cancelled.
Public MethodGetZipEntryList Returns the table of contents of the zip archive as a string list.
Public MethodIcsUnzipFirstDumpToFile(String) Calls UnzipFirstDumpToFile(zipPathAndFile, "", 0, null).
Public MethodIcsUnzipFirstDumpToFile(String, String, Int32) Unpacks the first file from the archive (no subfolders) and returns information about it. If maxBytes > is 0, only maxBytes are unpacked to determine the information. The main purpose of this routine is to get you started quickly. from packed dumps in order to obtain information, without having to unpack the entire dump (usually > 3GB).
Public MethodIsZip Checks whether a file is a zip archive with at least one entry.
Public MethodUnzipAllArchives Unpacks all ZIP archives from the zipsFolder directory into a New subdirectory with the name of the archive in the outputFolder.
Public MethodUnZipArchive Unpacks everything from the archive including subdirectory structures.
Public MethodUnZipArchiveFiles Unpacks everything from the archive including subdirectory structures.
Public MethodZipDirectory Packs everything from the inputFolderPath directory into the archive zipPathAndFile incl. subdirectory structures.
Public MethodZipFiles Packs the files from "filePathes" into an archive "zipPathAndFile". Optionally, a password can be entered.
Back to the top
Events
 NameDescription of the
Public EventZipProgressChanged Event that occurs when the progress of ZipAccess changes.
Public EventZipProgressFinished Event that occurs when ZipAccess is terminated.
Back to the top
Remarks
Microsoft's own routines put on their ears for archives > 4GIG and cannot recognise passwords!
Author: Peter Bromberg (http://www.eggheadcafe.com/tutorials/aspnet/9ce6c242-c14c-4969-9251-af95e4cf320f/zip--unzip-folders-and-f.aspx)
Many thanks for that. tweaked by: Erik Nagel, NetEti

24.02.2023 Erik Nagel: created
See also