(files []fs.DirEntry, names ...string)
| 392 | } |
| 393 | |
| 394 | func filterFiles(files []fs.DirEntry, names ...string) []fs.DirEntry { |
| 395 | var filtered []fs.DirEntry |
| 396 | for _, f := range files { |
| 397 | if slices.Contains(names, f.Name()) { |
| 398 | continue |
| 399 | } |
| 400 | filtered = append(filtered, f) |
| 401 | } |
| 402 | return filtered |
| 403 | } |
| 404 | |
| 405 | func verifyBinSha1IsCurrent(dest string, siteFS fs.FS, shaFiles map[string]string) (ok bool, err error) { |
| 406 | b1, err := fs.ReadFile(siteFS, "bin/coder.sha1") |
no test coverage detected