archive/zip.FileHeader.Name (field)
47 uses
archive/zip (current package)
reader.go#L298: f.Name = string(d[:filenameLen])
reader.go#L303: utf8Valid1, utf8Require1 := detectUTF8(f.Name)
reader.go#L677: name := toValidName(file.Name)
reader.go#L708: if e.file == nil || strings.HasSuffix(e.file.Name, "/") {
struct.go#L95: Name string
struct.go#L150: func (fi headerFileInfo) Name() string { return path.Base(fi.fh.Name) }
struct.go#L180: Name: fi.Name(),
struct.go#L293: if len(h.Name) > 0 && h.Name[len(h.Name)-1] == '/' {
writer.go#L122: b.uint16(uint16(len(h.Name)))
writer.go#L135: if _, err := io.WriteString(w.cw, h.Name); err != nil {
writer.go#L219: Name: name,
writer.go#L282: utf8Valid1, utf8Require1 := detectUTF8(fh.Name)
writer.go#L331: if strings.HasSuffix(fh.Name, "/") {
writer.go#L378: if len(h.Name) > maxUint16 {
writer.go#L396: b.uint16(uint16(len(h.Name)))
writer.go#L401: if _, err := io.WriteString(w, h.Name); err != nil {
golang.org/x/mod/zip
zip.go#L404: cf.Invalid = append(cf.Invalid, FileError{Path: zf.Name, Err: err})
zip.go#L414: if !strings.HasPrefix(zf.Name, prefix) {
zip.go#L418: name := zf.Name[len(prefix):]
zip.go#L465: cf.Valid = append(cf.Valid, zf.Name)
zip.go#L641: name := zf.Name[len(prefix):]
zip.go#L669: return fmt.Errorf("uncompressed size of file %s is larger than declared size (%d bytes)", zf.Name, zf.UncompressedSize64)
golang.org/x/pkgsite/internal/fetch
fetch.go#L376: if f.Name == name {
load.go#L65: _, name := path.Split(f.Name)
load.go#L357: defer derrors.Add(&err, "readZipFile(%q)", f.Name)
package.go#L115: if !strings.HasPrefix(f.Name, modulePrefix) {
package.go#L118: modulePrefix, f.Name, errMalformedZip)
package.go#L120: innerPath := path.Dir(f.Name[len(modulePrefix):])
package.go#L130: if !strings.HasSuffix(f.Name, ".go") {
package.go#L154: f.Name, f.UncompressedSize64, MaxFileSize)
readme.go#L27: if isReadme(zipFile.Name) {
readme.go#L36: f := strings.TrimPrefix(zipFile.Name, moduleVersionDir(modulePath, resolvedVersion)+"/")
golang.org/x/pkgsite/internal/licenses
licenses.go#L414: if !fileNamesLowercase[strings.ToLower(path.Base(f.Name))] {
licenses.go#L417: if !strings.HasPrefix(f.Name, prefix) {
licenses.go#L418: d.logf("potential license file %q found outside of the expected path %q", f.Name, cdir)
licenses.go#L422: if ignoreFiles[d.modulePath+" "+strings.TrimPrefix(f.Name, prefix)] {
licenses.go#L425: if which == RootFiles && path.Dir(f.Name) != cdir {
licenses.go#L429: if which == NonRootFiles && path.Dir(f.Name) == cdir {
licenses.go#L433: if isVendoredFile(f.Name) {
licenses.go#L437: if err := module.CheckFilePath(f.Name); err != nil {
licenses.go#L439: d.logf("module.CheckFilePath(%q): %v", f.Name, err)
licenses.go#L475: d.logf("reading zip file %s: %v", f.Name, err)
licenses.go#L479: FilePath: strings.TrimPrefix(f.Name, prefix),
licenses.go#L484: types, cov := DetectFile(bytes, f.Name, d.logf)
licenses.go#L488: FilePath: strings.TrimPrefix(f.Name, prefix),
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |