Documentation ¶
Index ¶
- func Compress(inPath, outPath string, bufferSize int) (*os.File, error)
- func Tarball(src string, options *Options, writers ...io.Writer) error
- func Zip(source, target string, zipMethod ZipMethod) (*os.File, error)
- func ZipDir(archive *zip.Writer, source string) error
- func ZipFile(archive *zip.Writer, source string) error
- type FileOptions
- type Options
- type ZipMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ZipDir ¶ added in v0.1.6
REF: https://forum.golangbridge.org/t/trying-to-zip-files-without-creating-folder-inside-archive/10260
Types ¶
type FileOptions ¶
FileOptions declares changes to be made to individual files when walking a directory
type Options ¶
type Options struct {
FileOptions
}
Options declares overrides to be made to files while creating the tarball.
Click to show internal directories.
Click to hide internal directories.