Lines Matching refs:dest
65 dest, src string member
412 var dest string
415 dest = filepath.Base(src)
418 dest, err = filepath.Rel(fa.SourcePrefixToStrip, src)
422 if strings.HasPrefix(dest, "../") {
430 dest = filepath.Join(fa.PathPrefixInZip, dest)
433 if _, found := nonDeflatedFiles[dest]; found || noCompression {
437 pathMapping{dest: dest, src: src, zipMethod: zipMethod})
444 return jar.EntryNamesLess(mappings[i].dest, mappings[j].dest)
489 if emulateJar && ele.dest == jar.ManifestFile {
490 err = z.addManifest(ele.dest, ele.src, ele.zipMethod)
492 err = z.addFile(ele.dest, ele.src, ele.zipMethod, emulateJar)
591 func (z *ZipWriter) addFile(dest, src string, method uint16, emulateJar bool) error {
611 return z.writeDirectory(dest, src, emulateJar)
615 if err := z.writeDirectory(filepath.Dir(dest), src, emulateJar); err != nil {
619 if prev, exists := z.createdDirs[dest]; exists {
620 return fmt.Errorf("destination %q is both a directory %q and a file %q", dest, prev, src)
622 if prev, exists := z.createdFiles[dest]; exists {
623 return fmt.Errorf("destination %q has two files %q and %q", dest, prev, src)
626 z.createdFiles[dest] = src
629 return z.writeSymlink(dest, src)
644 Name: dest,
656 func (z *ZipWriter) addManifest(dest string, src string, method uint16) error {
657 if prev, exists := z.createdDirs[dest]; exists {
658 return fmt.Errorf("destination %q is both a directory %q and a file %q", dest, prev, src)
660 if prev, exists := z.createdFiles[dest]; exists {
661 return fmt.Errorf("destination %q has two files %q and %q", dest, prev, src)
664 if err := z.writeDirectory(filepath.Dir(dest), src, true); err != nil {
962 dest, err := z.fs.Readlink(file)
967 fileHeader.UncompressedSize64 = uint64(len(dest))
968 fileHeader.CRC32 = crc32.ChecksumIEEE([]byte(dest))
975 futureReader <- bytes.NewBufferString(dest)