zipKit

package
v1.30.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unzip

func Unzip(zipPath, dstDir string) error

Unzip 解压

@param zipPath e.g."archive.zip"

func Zip

func Zip(zipPath string, paths ...string) error

Zip 压缩文件(或目录)

PS: (1) 缺点: 第三方库dablelv/go-huge-util暂不支持带密码的压缩. (2) 如果 zipPath 对应的是一个已经存在的文件,将会"覆盖"该文件的内容;

如果 zipPath 对应的是一个已经存在的目录,将会返回error(open {path}: is a directory).

@param zipPath e.g."archive.zip" @param paths 多个文件(或目录)的路径

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL