Skip to content

Commit

Permalink
Add comment about Unzip and nested folder support
Browse files Browse the repository at this point in the history
Signed-off-by: Tuan Anh Tran <[email protected]>
  • Loading branch information
tuananh authored and alexellis committed Jun 22, 2020
1 parent 6f45343 commit befc548
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/archive/unzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import (
"time"
)

// Unzip reads the compressed zip file from r and writes it into dir.
// Unzip reads the compressed zip file from reader and writes it into dir.
// Unzip works similar to Untar where support for nested folders is removed
// so that all files are placed in the same target directory
func Unzip(reader io.ReaderAt, size int64, dir string) error {
zipReader, err := zip.NewReader(reader, size)
if err != nil {
Expand Down

0 comments on commit befc548

Please sign in to comment.