MCPcopy Create free account
hub / github.com/bodgit/sevenzip / fileEntryLess

Function fileEntryLess

reader.go:735–740  ·  view source on GitHub ↗
(x, y string)

Source from the content-addressed store, hash-verified

733}
734
735func fileEntryLess(x, y string) bool {
736 xdir, xelem := split(x)
737 ydir, yelem := split(y)
738
739 return xdir < ydir || xdir == ydir && xelem < yelem
740}
741
742func split(name string) (dir, elem string) {
743 if len(name) > 0 && name[len(name)-1] == '/' {

Callers 1

initFileListMethod · 0.85

Calls 1

splitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…