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

Method openReadDir

reader.go:786–802  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

784}
785
786func (z *Reader) openReadDir(dir string) []fileListEntry {
787 files := z.fileList
788
789 i := sort.Search(len(files), func(i int) bool {
790 idir, _ := split(files[i].name)
791
792 return idir >= dir
793 })
794
795 j := sort.Search(len(files), func(j int) bool {
796 jdir, _ := split(files[j].name)
797
798 return jdir > dir
799 })
800
801 return files[i:j]
802}
803
804type openDir struct {
805 e *fileListEntry

Callers 1

OpenMethod · 0.95

Calls 1

splitFunction · 0.85

Tested by

no test coverage detected