-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/download: close files after extracting in tar (#310)
* pkg/download: close files after extracting in tar - Close file handle after extracting files on windows in extractTARGZ(). - Also ensure we close when io.Copy fails on extractZIP(). - Log the ignored error from the cleanup of DownloadPath. Signed-off-by: Ahmet Alp Balkan <[email protected]> * add src.close() Signed-off-by: Ahmet Alp Balkan <[email protected]>
- Loading branch information
1 parent
ba619f2
commit bc7b73b
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters