-
Notifications
You must be signed in to change notification settings - Fork 18k
archive/zip: Differentiate ReadDir result types #43872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ok this seem like an issue, for i := 0; i < 10; i++ {
reader, _ := zip.OpenReader("go1.15.7.windows-386.zip")
info, _ := fs.Stat(reader, "go")
fmt.Printf("%T\n", info)
} Results in:
|
I think there should be a Lines 676 to 685 in b634f5d
|
|
Change https://golang.org/cl/311530 mentions this issue: |
Change https://golang.org/cl/315249 mentions this issue: |
…o/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 87e4dcd) Reviewed-on: https://go-review.googlesource.com/c/go/+/315249 Trust: Jeremy Faller <jeremy@golang.org>
What version of Go are you using (
go version
)?Current HEAD
What did you do?
Results in:
I understand that you might want both results (s. #40354), so my question is:
Is there a good way to differentiate those internal types, if you just need one?
It escalates a little with
fs.WalkDir
:@rsc
The text was updated successfully, but these errors were encountered: