archive/zip: AddFS omits trailing slash in directory names #71235
Labels
BugReport
Issues describing a possible bug in the Go implementation.
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
Go version
go version go1.24-20241213-RC00 cl/706019355 +e39e965e0e X:fieldtrack,boringcrypto linux/amd64
Output of
go env
in your module/workspace:What did you do?
The doc for zip.FileHeader.Name says "A trailing slash indicates that this file is a directory."
When change https://go.dev/cl/578415 added directories, it did not include the trailing slashes.
repro: https://go.dev/play/p/9C5y2uZ1A2U?v=gotip
What did you see happen?
dir
dir/file
What did you expect to see?
dir/
dir/file
The text was updated successfully, but these errors were encountered: