ziputils

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package ziputils Author: youngchan CreateDate: 2021/5/28 4:25 下午 Copyright: ©2021 NEW CORE Technology Co. Ltd. All rights reserved. Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressDir

func CompressDir(dirPath string, dest string) error

CompressDir 压缩目录 dirPath 目录 dest 压缩文件存放地址

func CompressDirTemp

func CompressDirTemp(dirPath string, dest string) (string, error)

CompressDirTemp 压缩目录并存储在temp目录 dirPath 目录 dest 压缩文件名称,以`*.zip` 结尾 返回zip 文件存放的路径

func CompressFiles

func CompressFiles(files []*os.File, dest string) error

CompressFiles 压缩文件 files 文件数组,可以是不同dir下的文件或者文件夹 dest 压缩文件存放地址

func CompressFilesTemp

func CompressFilesTemp(files []*os.File, dest string) (string, error)

CompressFilesTemp 压缩文件并存储在temp目录 files 文件数组,可以是不同dir下的文件或者文件夹 dest 压缩文件名称,以`*.zip` 结尾 返回zip 文件存放的路径

func DeCompress

func DeCompress(zipFile, dest string) error

DeCompress 解压

Types

This section is empty.

Jump to

Keyboard shortcuts

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