- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for filterObjectsOnly (0.14 sec)
-
cmd/metacache-entries.go
} m.forwardTo(s) for i, o := range m.o { if !o.hasPrefix(s) { m.o = m.o[:i] break } } } // filterObjectsOnly will remove prefix directories. // Order is preserved, but the underlying slice is modified. func (m *metaCacheEntriesSorted) filterObjectsOnly() { dst := m.o[:0] for _, o := range m.o { if !o.isDir() { dst = append(dst, o) } } m.o = dst }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 04:34:26 UTC 2024 - 24K bytes - Viewed (0) -
cmd/metacache-entries_test.go
if want[i] != name { t.Errorf("unexpected name, want %q, got %q", want[i], name) } } } func Test_metaCacheEntries_filterObjects(t *testing.T) { data := loadMetacacheSampleEntries(t) data.filterObjectsOnly() got := data.entries().names()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 31.6K bytes - Viewed (0)