diff options
| author | Russ Cox <rsc@golang.org> | 2020-10-09 11:49:59 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2020-10-20 00:59:20 +0000 |
| commit | a4ede9f9a6254360d39d0f45aec133c355ac6b2a (patch) | |
| tree | b7e25cc247303143957f1937a9cfdd3e79fd8004 /src/errors/errors.go | |
| parent | 8fe372c7b36b4d078c871a26e10b427c41275ecd (diff) | |
| download | go-a4ede9f9a6254360d39d0f45aec133c355ac6b2a.tar.xz | |
os: add File.ReadDir method and DirEntry type
ReadDir provides a portable, efficient way to read a directory
and discover the type of directory entries.
This enables a more efficient file system walk, yet to be added.
See #41467 for the proposal review for the API.
Fixes #41467.
Change-Id: I461a526793ae46df48821aa448b04f1705546739
Reviewed-on: https://go-review.googlesource.com/c/go/+/261540
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/errors/errors.go')
0 files changed, 0 insertions, 0 deletions
