Documentation ¶
Index ¶
- func AppendFile(zipFile, dstRefPath, srcPath string) error
- func AppendFileWithData(zipFile, dstRefPath string, srcData []byte) error
- func AppendFileWithOriginalFileListData(zipFile, dstRefPath string) error
- func GetFileList(zipFile string) ([]string, error)
- func UnzipFile(zipFilePath, dstDir string) (err error)
- func UnzipSpecifiedFile(zipFile, srcFile, dstDir string) (string, error)
- func ZipDir(srcDir, dstPath, srcRoot string, toPrint bool) (err error)
- func ZipFile(srcPath, dstPath string, toPrint bool) (err error)
- func ZipFiles(fileItems []string, dstPath, srcRoot string, toPrint bool) (err error)
- func ZipItem(srcPath, dstPath string, toPrint bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFile ¶
AppendFile 向已存在的zip文件追加文件
func AppendFileWithData ¶
AppendFileWithData 向已存在的zip文件追加数据
func AppendFileWithOriginalFileListData ¶
appendFileWithOriginalFileListData 向已存在的zip文件追加原始文件列表数据
func UnzipSpecifiedFile ¶
UnzipSpecifiedFile 解压指定文件到目标目录
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.