Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSupportedArchive ¶ added in v1.7.2
Types ¶
type Unarchiver ¶
func (*Unarchiver) Unarchive ¶
func (u *Unarchiver) Unarchive(archivePath, archiveName, destinationPath string) error
The 'archiver' dependency includes an API called 'Unarchive' to extract archive files. This API uses the archive file extension to determine the archive type. We therefore need to use the file name as it was in Artifactory, and not the file name which was downloaded. To achieve this, we added a new implementation of the 'Unarchive' func and use it instead of the default one. archivePath - Absolute or relative path to the archive, without the file name archiveName - The archive file name destinationPath - The extraction destination directory
Click to show internal directories.
Click to hide internal directories.