This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
AD.IO.Compression
Austin Drenski edited this page Jan 31, 2017
·
5 revisions
static void GetZipFile(this UrlPath urlPath, ZipFilePath zipFilePath, bool overwrite)
UrlPath url = "www.google.com/example.zip";
ZipFilePath zip = ZipFilePath.Create("c:/users/example/desktop/example.zip");
url.GetZipFile(zip, overwrite: true);
static void TryGetZipFile(this UrlPath urlPath, ZipFilePath zipFilePath, bool overwrite, string completedMessage)
UrlPath url = "www.google.com/example.zip";
ZipFilePath zip = ZipFilePath.Create("c:/users/example/desktop/example.zip");
url.TryGetZipFile(zip, overwrite: true, "Download successful");
// Console: Download successful
static void ExtractZipFile(this ZipFilePath zipFilePath, FilePath filePath, bool overwrite)
static void ExtractZipFile(this ZipFilePath zipFilePath, FilePath filePath, bool overwrite, string message)
static void ExtractZipFile(this ZipFilePath zipFilePath, ZipFilePath outZipFilePath, bool overwrite)
static void ExtractZipFile(this ZipFilePath zipFilePath, ZipFilePath outZipFilePath, bool overwrite, string completedMessage)
static void ExtractZipFile(this ZipFilePath zipFilePath, DelimitedFilePath delimitedFilePath, bool overwrite)
static void ExtractZipFile(this ZipFilePath zipFilePath, DelimitedFilePath delimitedFilePath, bool overwrite, string message)
static void ExtractZipFile(this ZipFilePath zipFilePath, XmlFilePath xmlFilePath, bool overwrite)
static void ExtractZipFile(this ZipFilePath zipFilePath, XmlFilePath xmlFilePath, bool overwrite, string message)
ZipFilePath zip = "c:/users/example/desktop/example.zip";
XmlFilePath outXmlFilePath = XmlFilePath.Create("c:/users/example/desktop/example.xml");
zip.ExtractZipFile(outXmlFilePath, overwrite: true, message: "'zip' extracted to 'outXmlFilePath'");
// Console: 'zip' extracted to 'outXmlFilePath'
static void ExtractZipFile(this ZipFilePath zipFilePath, DirectoryPath directoryPath, bool overwrite)
static void ExtractZipFile(this ZipFilePath zipFilePath, DirectoryPath directoryPath, bool overwrite, string message)
ZipFilePath zip = "c:/users/example/desktop/example.zip";
DirectoryPath directoryPath = "c:/users/example/desktop";
zip.ExtractZipFiles(directorPath, overwrite: true, message: "Contents of 'zip' extracted to 'outDirectoryPath'");
// Console: Contents of 'zip' extracted to 'outDirectoryPath'