Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Zipper ¶
type Zipper struct {
// contains filtered or unexported fields
}
func (*Zipper) ZipDir ¶
ZipDir zips the contents of dir to the provided writer, and flattens any directory hierarchy, so the resultant zip has just a flat list of files. Filename conflicts result in error. It aims to produce reproducible zips by writing entries in a predictable order.
It is intended to perform the same function as calling 'zip -Xrj $zipFile $dir'
Click to show internal directories.
Click to hide internal directories.