Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Archive ¶
Archive compresses a file/directory to a writer
If the path ends with a separator, then the contents of the folder at that path are at the root level of the archive, otherwise, the root of the archive contains the folder as its only item (with contents inside).
If progress is not nil, it is called for each file added to the archive.
func ArchivePartial ¶
ArchivePartial compresses all files in a file/directory matching a relative prefix to a writer
If the path ends with a separator, then the contents of the folder at that path are at the root level of the archive, otherwise, the root of the archive contains the folder as its only item (with contents inside).
If progress is not nil, it is called for each file added to the archive.
func CreateTestZip ¶
func CreateTestZip(files []TestFile) (io.ReadCloser, error)
CreateTestZip allows for creating temporary in memory zip files