- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for noDirs (0.18 sec)
-
cmd/metacache-stream_test.go
if err != io.EOF { t.Fatal(err, entries.len()) } want := loadMetacacheSampleNames var noDirs []string for i, entry := range entries.entries() { if entry.name != want[i] { t.Errorf("entry %d, want %q, got %q", i, want[i], entry.name) } if !entry.isDir() { noDirs = append(noDirs, entry.name) } } if entries.len() != len(want) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 15K bytes - Viewed (0) -
cmd/net.go
func sortIPs(ipList []string) []string { if len(ipList) == 1 { return ipList } var ipV4s []net.IP var nonIPs []string for _, ip := range ipList { nip := net.ParseIP(ip) if nip != nil { ipV4s = append(ipV4s, nip) } else { nonIPs = append(nonIPs, ip) } } sort.Slice(ipV4s, func(i, j int) bool { // This case is needed when all ips in the list
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Mar 26 15:00:38 GMT 2024 - 9.3K bytes - Viewed (0) -
cmd/update_nofips.go
Poorna <******@****.***> 1709953628 -0800
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Mar 09 03:07:08 GMT 2024 - 931 bytes - Viewed (0) -
cmd/storage-rest_test.go
testCases := []struct { volumeName string prefix string expectedResult []string expectErr bool }{ {"foo", "path", []string{"to/"}, false}, // prefix not found error. {"foo", "nodir", nil, true}, } for i, testCase := range testCases { result, err := storage.ListDir(context.Background(), "", testCase.volumeName, testCase.prefix, -1) expectErr := (err != nil)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Jan 30 20:43:25 GMT 2024 - 11.4K bytes - Viewed (0) -
internal/hash/sha256/sh256_nofips.go
Klaus Post <******@****.***> 1661817436 +0200
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Mon Aug 29 23:57:16 GMT 2022 - 1.2K bytes - Viewed (0)