- Sort Score
- Result 10 results
- Languages All
Results 41 - 45 of 45 for DirEntry (2.11 sec)
-
src/os/dir_unix.go
return &buf }, } func (d *dirInfo) close() { if d.buf != nil { dirBufPool.Put(d.buf) d.buf = nil } } func (f *File) readdir(n int, mode readdirMode) (names []string, dirents []DirEntry, infos []FileInfo, err error) { // If this file has no dirInfo, create one. d := f.dirinfo.Load() if d == nil { d = new(dirInfo) f.dirinfo.Store(d) } d.mu.Lock() defer d.mu.Unlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:11:45 UTC 2024 - 4.8K bytes - Viewed (0) -
pkg/util/filesystem/defaultfs.go
file, err := os.CreateTemp(fs.prefix(dir), prefix) if err != nil { return nil, err } return &defaultFile{file}, nil } // ReadDir via os.ReadDir func (fs *DefaultFs) ReadDir(dirname string) ([]os.DirEntry, error) { return os.ReadDir(fs.prefix(dirname)) } // Walk via filepath.Walk func (fs *DefaultFs) Walk(root string, walkFn filepath.WalkFunc) error { return filepath.Walk(fs.prefix(root), walkFn) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 03 07:38:14 UTC 2023 - 4.7K bytes - Viewed (0) -
src/net/http/http_test.go
if !testenv.HasSrc() { t.Skip("source code not available") } re := regexp.MustCompile(`(strings|bytes).([A-Za-z]+)`) if err := fs.WalkDir(os.DirFS("."), ".", func(path string, d fs.DirEntry, err error) error { if err != nil { t.Fatal(err) } if path == "internal/ascii" { return fs.SkipDir } if !strings.HasSuffix(path, ".go") || strings.HasSuffix(path, "_test.go") ||
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 18:18:19 UTC 2023 - 5.2K bytes - Viewed (0) -
src/cmd/distpack/archive.go
// The archive can be amended afterward using methods like Add and Filter. func NewArchive(dir string) (*Archive, error) { a := new(Archive) err := fs.WalkDir(os.DirFS(dir), ".", func(name string, d fs.DirEntry, err error) error { if err != nil { return err } if d.IsDir() { return nil } info, err := d.Info() if err != nil { return err } a.Add(name, filepath.Join(dir, name), info)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 11 17:37:52 UTC 2023 - 5.9K bytes - Viewed (0) -
internal/store/queuestore.go
return l, nil } // list will read all entries from disk. // Entries are returned sorted by modtime, oldest first. // Underlying entry list in store is *not* updated. func (store *QueueStore[_]) list() ([]os.DirEntry, error) { files, err := os.ReadDir(store.directory) if err != nil { return nil, err } // Sort the entries. sort.Slice(files, func(i, j int) bool { ii, err := files[i].Info()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Mar 25 16:44:20 UTC 2024 - 7.1K bytes - Viewed (0)