Lines Matching refs:match
143 if match, err := pathtools.Match(input, file.Name); err != nil {
145 } else if match {
182 for _, match := range matches {
185 if exclude, err := excludes.Match(match.File.Name); err != nil {
188 if include, err := includes.Match(match.File.Name); err != nil {
196 if prev, exists := seen[match.newName]; exists {
197 if prev != match.File {
198 return fmt.Errorf("multiple entries for %q with different contents", match.newName)
202 seen[match.newName] = match.File
205 if uncompressMatch, err := pathtools.Match(u, match.newName); err != nil {
208 match.uncompress = true
213 matchesAfterExcludes = append(matchesAfterExcludes, match)
216 for _, match := range matchesAfterExcludes {
218 match.File.SetModTime(staticTime)
220 if match.uncompress && match.File.FileHeader.Method != zip.Store {
221 fh := match.File.FileHeader
222 fh.Name = match.newName
231 zr, err := match.File.Open()
242 err := writer.CopyFrom(match.File, match.newName)
277 if match, err := pathtools.Match(f, s); err != nil {
279 } else if match {