aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorMauri de Souza Meneguzzo <mauri870@gmail.com>2023-07-27 23:11:59 +0000
committerGopher Robot <gobot@golang.org>2023-07-31 18:10:41 +0000
commit845fff35c6c37186936eb34c5a08b1a99483d9b8 (patch)
tree7175976b24fe77e5b7cdd87ac89dcb92a228612b /api
parent789980ec0e4f6512cd021d238e6c8e309a7e1cf2 (diff)
downloadgo-845fff35c6c37186936eb34c5a08b1a99483d9b8.tar.gz
go-845fff35c6c37186936eb34c5a08b1a99483d9b8.zip
archive/zip: add AddFS method to zip Writer
The method AddFS can be used to add the contents of a fs.FS filesystem to a zip archive. This method walks the directory tree starting at the root of the filesystem and adds each file to the archive. Fixes #54898 Change-Id: I80511cbd91a1d7e09ee52d2d1b09fb5eed25f45f GitHub-Last-Rev: 1e17f2e6bae60cf5168d687dd1357ab58a883675 GitHub-Pull-Request: golang/go#61602 Reviewed-on: https://go-review.googlesource.com/c/go/+/513438 Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'api')
-rw-r--r--api/next/54898.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/next/54898.txt b/api/next/54898.txt
new file mode 100644
index 0000000000..44133bd377
--- /dev/null
+++ b/api/next/54898.txt
@@ -0,0 +1 @@
+pkg archive/zip, method (*Writer) AddFS(fs.FS) error #54898