- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 134 for Readdir (0.14 sec)
-
src/cmd/go/internal/fsys/fsys_test.go
for _, tc := range testCases { dir, want := tc.dir, tc.want infos, err := ReadDir(dir) if err != nil { t.Errorf("ReadDir(%q): %v", dir, err) continue } // Sorted diff of want and infos. for len(infos) > 0 || len(want) > 0 { switch { case len(want) == 0 || len(infos) > 0 && infos[0].Name() < want[0].name:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:52:11 UTC 2023 - 29.1K bytes - Viewed (0) -
src/internal/godebugs/godebugs_test.go
if err != nil { t.Fatalf("go list: %v\n%s", err, out) } seen := map[string]bool{} for _, dir := range strings.Split(string(out), "\n") { if dir == "" { continue } files, err := os.ReadDir(dir) if err != nil { t.Fatal(err) } for _, file := range files { name := file.Name() if !strings.HasSuffix(name, ".go") || strings.HasSuffix(name, "_test.go") { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 14:19:39 UTC 2024 - 2.3K bytes - Viewed (0) -
src/go/build/build.go
if !found { return "", false } return filepath.ToSlash(after), true } // readDir calls ctxt.ReadDir (if not nil) or else os.ReadDir. func (ctxt *Context) readDir(path string) ([]fs.DirEntry, error) { // TODO: add a fs.DirEntry version of Context.ReadDir if f := ctxt.ReadDir; f != nil { fis, err := f(path) if err != nil { return nil, err } des := make([]fs.DirEntry, len(fis))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_fuzztime.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 20:09:52 UTC 2024 - 3.1K bytes - Viewed (0) -
src/internal/goroot/gc.go
// given goroot and compiler. func IsStandardPackage(goroot, compiler, path string) bool { switch compiler { case "gc": dir := filepath.Join(goroot, "src", path) dirents, err := os.ReadDir(dir) if err != nil { return false } for _, dirent := range dirents { if strings.HasSuffix(dirent.Name(), ".go") { return true } } return false case "gccgo":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 18:16:28 UTC 2024 - 3.2K bytes - Viewed (0) -
pkg/kubelet/stats/host_stats_provider_fake.go
path := kuberuntime.BuildPodLogsDirectory("/var/log/kube/pods/", podNamespace, podName, podUID) files, err := f.osInterface.ReadDir(path) if err != nil { return nil, err } var results []volume.MetricsProvider for _, file := range files { if file.IsDir() { continue } // Only include *files* under pod log directory.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 17:57:17 UTC 2024 - 3.9K bytes - Viewed (0) -
cni/test/install_cni.go
t.Fatalf("Couldn't get current working directory, err: %v", err) } t.Logf("Created temporary dir: %v", tempDir) return tempDir } func ls(dir string, t *testing.T) []string { files, err := os.ReadDir(dir) t.Helper() if err != nil { t.Fatalf("Failed to list files, err: %v", err) } return slices.Map(files, func(e os.DirEntry) string { return e.Name() }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/kubelet/volumemanager/reconciler/reconstruct_common.go
// It returns a list of pod volume information including pod's uid, volume's plugin name, mount path, // and volume spec name. func getVolumesFromPodDir(podDir string) ([]podVolume, error) { podsDirInfo, err := os.ReadDir(podDir) if err != nil { return nil, err } volumes := []podVolume{} for i := range podsDirInfo { if !podsDirInfo[i].IsDir() { continue } podName := podsDirInfo[i].Name()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 09 07:34:33 UTC 2024 - 14.1K bytes - Viewed (0) -
src/internal/trace/internal/oldtrace/parser_test.go
if err == nil || res.Events.Len() != 0 || res.Stacks != nil { t.Fatalf("no error on input: %q", data) } } } func TestParseCanned(t *testing.T) { files, err := os.ReadDir("./testdata") if err != nil { t.Fatalf("failed to read ./testdata: %v", err) } for _, f := range files { info, err := f.Info() if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 3.4K bytes - Viewed (0) -
src/cmd/compile/internal/test/ssa_test.go
var srcs []string // files containing Test functions type test struct { name string // TestFoo usesFloat bool // might use float operations } var tests []test files, err := os.ReadDir("testdata") if err != nil { t.Fatalf("can't read testdata directory: %v", err) } for _, f := range files { if !strings.HasSuffix(f.Name(), "_test.go") { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 4.9K bytes - Viewed (0)