All Projects → PerfectlySoft → Perfect-Zip

PerfectlySoft / Perfect-Zip

Licence: Apache-2.0, Unknown licenses found Licenses found Apache-2.0 LICENSE Unknown LICENSE.zh_CN
Perfect Zip compression utility.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Perfect-Zip

ZipArchive
A single-class pure VB6 library for zip with ASM speed
Stars: ✭ 38 (+90%)
Mutual labels:  compression, zip
Perfect-HTTPServer
HTTP server for Perfect.
Stars: ✭ 104 (+420%)
Mutual labels:  perfect, server-side-swift
Perfect-WebSocketsServer
Perfect Example Module: WebSockets Server
Stars: ✭ 34 (+70%)
Mutual labels:  perfect, server-side-swift
Datacompression
Swift libcompression wrapper as an extension for the Data type (GZIP, ZLIB, LZFSE, LZMA, LZ4, deflate, RFC-1950, RFC-1951, RFC-1952)
Stars: ✭ 191 (+855%)
Mutual labels:  compression, zip
unzip
Tiny unzip helper class for .NET 3.5 Client Profile and Mono 2.10, written in pure C#.
Stars: ✭ 25 (+25%)
Mutual labels:  compression, zip
Turbobench
Compression Benchmark
Stars: ✭ 211 (+955%)
Mutual labels:  compression, zip
Perfect-Weather
Demonstrate using URL Routes & variables, Fetching of remote data from API's as JSON, reading and transforming to data more appropriately consumable by an API client.
Stars: ✭ 32 (+60%)
Mutual labels:  perfect, server-side-swift
Sharpcompress
SharpCompress is a fully managed C# library to deal with many compression types and formats.
Stars: ✭ 1,397 (+6885%)
Mutual labels:  compression, zip
Perfect-SMTP
SMTP Client for Perfect.
Stars: ✭ 19 (-5%)
Mutual labels:  perfect, server-side-swift
VszLib
7-zip VB6 Helper
Stars: ✭ 35 (+75%)
Mutual labels:  compression, zip
Zip
Swift framework for zipping and unzipping files.
Stars: ✭ 2,120 (+10500%)
Mutual labels:  compression, zip
Perfect-Thread
Core threading library for Perfect Server Side Swift. Includes support for serial and concurrent thread queues, locks, read/write locks and events.
Stars: ✭ 17 (-15%)
Mutual labels:  perfect, server-side-swift
Bit7z
A C++ static library offering a clean and simple interface to the 7-zip DLLs.
Stars: ✭ 159 (+695%)
Mutual labels:  compression, zip
Perfect-URL-Shortener
An Example URL Shortener System for Perfect
Stars: ✭ 37 (+85%)
Mutual labels:  perfect, server-side-swift
Zipstorer
A Pure C# Class to Store Files in Zip
Stars: ✭ 139 (+595%)
Mutual labels:  compression, zip
Perfect-HTTP
Base HTTP Support for Perfect.
Stars: ✭ 29 (+45%)
Mutual labels:  perfect, server-side-swift
Zip
Efficient library for manipulating zip archives
Stars: ✭ 69 (+245%)
Mutual labels:  compression, zip
Zippy
Pure Nim implementation of deflate, zlib, gzip and zip.
Stars: ✭ 88 (+340%)
Mutual labels:  compression, zip
qlZipInfo
MacOSX QuickLook Generator for zip, jar, tar, tar.gz (.tgz), tar.bz2 (.tbz2/.tbz), tar.Z. xar (.xar, .pkg), debian (.deb), RedHat Package Manager (.rpm), 7zip (.7z), xz, Microsoft cabinet (.cab), gzip (.gz), lha, BinHex 4.0 (.hqx), and Stuffit (.sit) archives, and ISO9660 images
Stars: ✭ 47 (+135%)
Mutual labels:  compression, zip
Perfect-XML
XML support for Perfect.
Stars: ✭ 16 (-20%)
Mutual labels:  perfect, server-side-swift

Perfect Zip 简体中文

Get Involed with Perfect!

Star Perfect On Github Stack Overflow Follow Perfect on Twitter Join the Perfect Slack

Swift 3.0 Platforms OS X | Linux License Apache PerfectlySoft Twitter Slack Status

Perfect Zip utility

This Perfect module wraps the minizip C library and provides simple zip and unzip functionality.

Including in your project

Add this project as a dependency in your Package.swift file.

.Package(url: "https://github.com/PerfectlySoft/Perfect-Zip.git", majorVersion: 3)

Running

The following will zip the specified directory:

import PerfectZip

let zippy = Zip()

let thisZipFile = "/path/to/ZipFile.zip"
let sourceDir = "/path/to/files/"

let ZipResult = zippy.zipFiles(
	paths: [sourceDir], 
	zipFilePath: thisZipFile, 
	overwrite: true, password: ""
)
print("ZipResult Result: \(ZipResult.description)")

To unzip a file:

import PerfectZip

let zippy = Zip()

let sourceDir = "/path/to/files/"
let thisZipFile = "/path/to/ZipFile.zip"

let UnZipResult = zippy.unzipFile(
	source: thisZipFile, 
	destination: sourceDir, 
	overwrite: true
)
print("Unzip Result: \(UnZipResult.description)")

Further Information

For more information on the Perfect project, please visit perfect.org.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].