Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Writer ¶
Writer is a wrapper around zip.Writer and implements zip archiving for archive.Writer.
func NewFileWriter ¶ added in v0.47.0
func NewFileWriter(name string, matcher sauceignore.Matcher) (Writer, error)
NewFileWriter returns a new Writer that archives files to name.
func (*Writer) Add ¶
Add adds the file at src to the destination dst in the archive and returns a count of the files added to the archive, as well the length of the longest path. The added file names should not contain any backslashes according to the specification outlined in https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT. It's essential to adhere to this specification to ensure compatibility and proper functioning of the files across different systems and platforms.
Click to show internal directories.
Click to hide internal directories.