]> Cypherpunks.ru repositories - gostls13.git/commit
archive/tar: add AddFS method to Writer
authorMauri de Souza Meneguzzo <mauri870@gmail.com>
Thu, 10 Aug 2023 21:13:11 +0000 (21:13 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 13 Sep 2023 13:59:01 +0000 (13:59 +0000)
commite5600f063d41fdd531a23384744ea9018767a186
tree5e9e883e458d88d7e90a0a3c24580262ffb6f101
parent0460c61e5fd2242d27451f527dafc4d9a098fef4
archive/tar: add AddFS method to Writer

The method AddFS can be used to add the contents of a fs.FS filesystem
to a tar archive. This method walks the directory tree starting at the root
of the filesystem and adds each file to the archive.

Fixes #58000

Change-Id: I0e6abac76b76bc5d95b74b7e5b37634ce3f76c85
GitHub-Last-Rev: 11a62bfd7ebc7ca93b1832da15018e6805c92520
GitHub-Pull-Request: golang/go#61599
Reviewed-on: https://go-review.googlesource.com/c/go/+/513316
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
api/next/58000.txt [new file with mode: 0644]
src/archive/tar/writer.go
src/archive/tar/writer_test.go