Show / Hide Table of Contents

Class CompressionUtil

Inheritance
object
CompressionUtil
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Dnn.ExportImport.Components.Common
Assembly: DotNetNuke.SiteExportImport.dll
Syntax
public static class CompressionUtil

Methods

AddFileToArchive(ZipArchive, string, int, string)

Declaration
public static bool AddFileToArchive(ZipArchive archive, string file, int folderOffset, string folder = null)
Parameters
Type Name Description
ZipArchive archive
string file
int folderOffset
string folder
Returns
Type Description
bool

AddFileToArchive(string, string, int, string)

Declaration
public static bool AddFileToArchive(string file, string archivePath, int folderOffset, string folder = null)
Parameters
Type Name Description
string file
string archivePath
int folderOffset
string folder
Returns
Type Description
bool

AddFilesToArchive(ZipArchive, IEnumerable<string>, int, string)

Declaration
public static void AddFilesToArchive(ZipArchive archive, IEnumerable<string> files, int folderOffset, string folder = null)
Parameters
Type Name Description
ZipArchive archive
IEnumerable<string> files
int folderOffset
string folder

OpenCreate(string)

Declaration
public static ZipArchive OpenCreate(string archiveFileName)
Parameters
Type Name Description
string archiveFileName
Returns
Type Description
ZipArchive

UnZipArchive(string, string, bool)

Declaration
public static void UnZipArchive(string archivePath, string extractFolder, bool overwrite = true)
Parameters
Type Name Description
string archivePath
string extractFolder
bool overwrite

UnZipArchiveExcept(string, string, bool, IEnumerable<string>, bool)

Declaration
public static void UnZipArchiveExcept(string archivePath, string extractFolder, bool overwrite = true, IEnumerable<string> exceptionList = null, bool deleteFromSoure = false)
Parameters
Type Name Description
string archivePath
string extractFolder
bool overwrite
IEnumerable<string> exceptionList
bool deleteFromSoure

UnZipFileFromArchive(string, string, string, bool, bool)

Declaration
public static void UnZipFileFromArchive(string fileName, string archivePath, string extractFolder, bool overwrite = true, bool deleteFromSoure = false)
Parameters
Type Name Description
string fileName
string archivePath
string extractFolder
bool overwrite
bool deleteFromSoure

ZipFolder(string, string)

Declaration
public static void ZipFolder(string folderPath, string archivePath)
Parameters
Type Name Description
string folderPath
string archivePath
Back to top by the community, for the community... #DNNCMS