Skip to content

Commit

Permalink
✨ Add callback func for zip
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jun 12, 2024
1 parent b3a7670 commit c9cf5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (z *ZipFile) AddDirectory(path, dirName string, callback ...func(string)) e

err = nil
if file.IsDir() {
err = z.AddDirectory(zipPath, localPath)
err = z.AddDirectory(zipPath, localPath, callback...)
} else {
err = z.AddEntry(zipPath, localPath, callback...)
}
Expand Down

0 comments on commit c9cf5f7

Please sign in to comment.