C# Класс LitDev.LDZip

Показать файл Открыть проект

Открытые методы

Метод Описание
Remove ( Primitive zipFile, Primitive files ) : Primitive

Remove a file (or directory with all sub files) from an existing zip archive.

UnZip ( Primitive zipFile, Primitive directory ) : Primitive

Uncompress a zip archive.

Zip ( Primitive zipFile, Primitive files ) : Primitive

Compress files to a zip archive.

ZipList ( Primitive zipFile ) : Primitive

List the files in a zip archive.

Приватные методы

Метод Описание
AddToArchive ( Package zip, string fileToAdd, string root ) : void
ExtractFile ( string rootFolder, System.IO.Packaging.ZipPackagePart contentFile ) : void
RemoveFromArchive ( ZipFile zip, string fileToRemove ) : void

Описание методов

Remove() публичный статический Метод

Remove a file (or directory with all sub files) from an existing zip archive.
public static Remove ( Primitive zipFile, Primitive files ) : Primitive
zipFile Primitive The zip archive to remove a file from.
files Primitive /// An array of files to remove from the zip archive. /// A single file or directory may also be deleted. /// Any directories will be recursively removed from the zip. ///
Результат Primitive

UnZip() публичный статический Метод

Uncompress a zip archive.
public static UnZip ( Primitive zipFile, Primitive directory ) : Primitive
zipFile Primitive The zip archive to uncompress.
directory Primitive A directory to uncompress the files to (existing files will be overwritten).
Результат Primitive

Zip() публичный статический Метод

Compress files to a zip archive.
public static Zip ( Primitive zipFile, Primitive files ) : Primitive
zipFile Primitive The zip archive file to create.
files Primitive /// An array of files to append to the zip archive. /// A single file or directory may also be set. /// Any directories will be recursively added to the zip. /// Any white space in files or directories will be replaced with "_". ///
Результат Primitive

ZipList() публичный статический Метод

List the files in a zip archive.
public static ZipList ( Primitive zipFile ) : Primitive
zipFile Primitive The zip archive.
Результат Primitive