]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.16] archive/zip: only return directory once via io/fs.FS
authorIan Lance Taylor <iant@golang.org>
Mon, 19 Apr 2021 20:51:53 +0000 (13:51 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 30 Apr 2021 19:36:35 +0000 (19:36 +0000)
commite67a58b7cb2b228e04477dfdb1aacd8348e63534
tree976b735b3b77eb6251b52cd6bc3ac9b5b5b93c95
parentd4adea20f01627098936e050d3a73922f7ebe08f
[release-branch.go1.16] archive/zip: only return directory once via io/fs.FS

While we're here fix the ModTime value for directories.

For #43872
For #45345
Fixes #45347

Change-Id: I155e6517713ef6a9482b9431f1167a44337c6ad2
Reviewed-on: https://go-review.googlesource.com/c/go/+/311530
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
(cherry picked from commit 87e4dcd446df2ab1985ef61ce15da329493248a1)
Reviewed-on: https://go-review.googlesource.com/c/go/+/315249
Trust: Jeremy Faller <jeremy@golang.org>
src/archive/zip/reader.go
src/archive/zip/reader_test.go
src/archive/zip/testdata/subdir.zip [new file with mode: 0644]