package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Aug 30, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Returns the size of the zip file at the given path.
The path must be absolute.
Example:
("/home/dev/packer_1.7.4_windows_amd64.zip") -> 123456789, nil
func Unzip(
pathToZip, pathToUnzip string,
bytesUnzipped chan<- int,
) error
Unzips the zip file at the given path to the given destination path.
Sends the number of bytes unzipped to the given channel.
Example:
("/home/dev/packer_1.7.4_windows_amd64.zip", "/home/dev/unzip", bytesUnzippedChan) -> nil
Unzips a file from a zip file to a destination path.
The destination path is created if it doesn't exist.
Returns the number of bytes copied.
Example:
(zipFile, "/home/dev/unzip") -> 1234, nil
Source Files
¶
Click to show internal directories.
Click to hide internal directories.