- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for filterPrefixesOnly (0.13 sec)
-
cmd/metacache-entries.go
dst := m.o[:0] for _, o := range m.o { if !o.isDir() { dst = append(dst, o) } } m.o = dst } // filterPrefixesOnly will remove objects. // Order is preserved, but the underlying slice is modified. func (m *metaCacheEntriesSorted) filterPrefixesOnly() { dst := m.o[:0] for _, o := range m.o { if o.isDir() { dst = append(dst, o) } } m.o = dst }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 24.1K bytes - Viewed (0) -
cmd/metacache-entries_test.go
if !reflect.DeepEqual(want, got) { t.Errorf("got unexpected result: %#v", got) } } func Test_metaCacheEntries_filterPrefixes(t *testing.T) { data := loadMetacacheSampleEntries(t) data.filterPrefixesOnly() got := data.entries().names()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 31.6K bytes - Viewed (0)