MCPcopy Index your code
hub / github.com/coder/coder / filterFiles

Function filterFiles

site/bin.go:394–403  ·  view source on GitHub ↗
(files []fs.DirEntry, names ...string)

Source from the content-addressed store, hash-verified

392}
393
394func 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
405func verifyBinSha1IsCurrent(dest string, siteFS fs.FS, shaFiles map[string]string) (ok bool, err error) {
406 b1, err := fs.ReadFile(siteFS, "bin/coder.sha1")

Callers 1

ExtractOrReadBinFSFunction · 0.85

Calls 2

NameMethod · 0.65
ContainsMethod · 0.45

Tested by

no test coverage detected