mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
archive/zip: add docs on type of slashes in paths
Fixes #5307 R=golang-dev, r CC=golang-dev https://golang.org/cl/8676046
This commit is contained in:
parent
d00a646e70
commit
b95c48918c
2 changed files with 11 additions and 1 deletions
|
|
@ -64,8 +64,15 @@ const (
|
|||
zip64ExtraId = 0x0001 // zip64 Extended Information Extra Field
|
||||
)
|
||||
|
||||
// FileHeader describes a file within a zip file.
|
||||
// See the zip spec for details.
|
||||
type FileHeader struct {
|
||||
Name string
|
||||
// Name is the name of the file.
|
||||
// It must be a relative path: it must not start with a drive
|
||||
// letter (e.g. C:) or leading slash, and only forward slashes
|
||||
// are allowed.
|
||||
Name string
|
||||
|
||||
CreatorVersion uint16
|
||||
ReaderVersion uint16
|
||||
Flags uint16
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue