MCPcopy
hub / github.com/wavetermdev/waveterm / SortFileNameDescend

Function SortFileNameDescend

pkg/wconfig/settingsconfig.go:629–633  ·  view source on GitHub ↗
(files []fs.DirEntry)

Source from the content-addressed store, hash-verified

627}
628
629func SortFileNameDescend(files []fs.DirEntry) {
630 sort.Slice(files, func(i, j int) bool {
631 return files[i].Name() > files[j].Name()
632 })
633}
634
635// Read and merge all files in the specified directory matching the supplied suffix
636func readConfigFilesForDir(fsys fs.FS, logPrefix string, dirName string, fileName string, simpleMerge bool) (waveobj.MetaMapType, []ConfigError) {

Callers 1

readConfigFilesForDirFunction · 0.85

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected