Skip to content

Commit

Permalink
Fix relative path in download explode
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino authored Nov 11, 2019
1 parent 3d0379d commit 0c31c45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,11 @@ func extractZip(downloadFileDetails *DownloadFileDetails, logMsgPrefix string) e
return err
}
log.Info(logMsgPrefix+"Extracting archive:", fileName, "to", downloadFileDetails.LocalPath)
err = archiver.Zip.Open(fileName, downloadFileDetails.LocalPath)
absLocalPath, err := filepath.Abs(downloadFileDetails.LocalPath)
if errorutils.CheckError(err) != nil {
return err
}
err = archiver.Zip.Open(fileName, absLocalPath)
if errorutils.CheckError(err) != nil {
return err
}
Expand Down

0 comments on commit 0c31c45

Please sign in to comment.