zipKit

package
v2.8.114 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Unzip func(zipPath, dstDir string) error = zip.Unzip

Unzip 解压

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

View Source
var Zip func(zipPath string, paths ...string) error = zip.Zip

Zip 压缩文件(或目录)

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

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

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

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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