- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 104 for Readdir (0.24 sec)
-
src/os/os_test.go
t.Helper() fi, err := d.Readdir(n) if err != wantErr { t.Fatalf("Readdir of %d got error %v, want %v", n, err, wantErr) } if g, e := len(fi), want; g != e { t.Errorf("Readdir of %d got %d files, want %d", n, g, e) } } readDirExpect := func(n, want int, wantErr error) { t.Helper() de, err := d.ReadDir(n) if err != wantErr {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0) -
src/os/stat_test.go
if parentdir == "" || base == "" { // skip os.Readdir test of files without directory or file name component, // such as directories with slash at the end or Windows device names. return } parent, err := os.Open(parentdir) if err != nil { t.Error(err) return } defer parent.Close() fis, err := parent.Readdir(-1) if err != nil { t.Error(err) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:38:03 UTC 2024 - 7.8K bytes - Viewed (0) -
src/os/dir_windows.go
return &buf }, } func (d *dirInfo) close() { d.h = 0 if d.buf != nil { dirBufPool.Put(d.buf) d.buf = nil } } // allowReadDirFileID indicates whether File.readdir should try to use FILE_ID_BOTH_DIR_INFO // if the underlying file system supports it. // Useful for testing purposes. var allowReadDirFileID = true func (d *dirInfo) init(h syscall.Handle) { d.h = h
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 20:52:06 UTC 2024 - 7.7K bytes - Viewed (0) -
src/testing/fstest/mapfs.go
return fs.ReadFile(fsOnly{fsys}, name) } func (fsys MapFS) Stat(name string) (fs.FileInfo, error) { return fs.Stat(fsOnly{fsys}, name) } func (fsys MapFS) ReadDir(name string) ([]fs.DirEntry, error) { return fs.ReadDir(fsOnly{fsys}, name) } func (fsys MapFS) Glob(pattern string) ([]string, error) { return fs.Glob(fsOnly{fsys}, pattern) } type noSub struct { MapFS }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.1K bytes - Viewed (0) -
pkg/kubelet/logs/container_log_manager_test.go
}() // This is a blocking call. But the above routine takes care of ensuring that this is terminated once the queue is shutdown c.processQueueItems(ctx, 1) timestamp := now.Format(timestampFormat) logs, err := os.ReadDir(dir) require.NoError(t, err) assert.Len(t, logs, 5) assert.Equal(t, testLogs[0], logs[0].Name()) assert.Equal(t, testLogs[1]+"."+timestamp, logs[1].Name()) assert.Equal(t, testLogs[4]+compressSuffix, logs[2].Name())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 12.7K 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)