Documentation ¶
Overview ¶
Package rezip provides compression for files and directories to create zip archives using the universal Store and Deflate compression methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrTest = errors.New("rezip test failed")
Functions ¶
func Compress ¶
Compress compresses the named file into the dest zip file using the Deflate method. The total number of bytes written to the zip file is returned.
The dest must be a valid file path and should include the .zip extension. If the dest file already exists, an error is returned.
func CompressDir ¶
CompressDir compresses the named root directory into the dest zip file using both the Deflate method. The total number of bytes written to the zip file is returned.
The dest must be a valid file path and should include the .zip extension. If the dest file already exists, an error is returned.
Types ¶
This section is empty.