]> Cypherpunks repositories - gostls13.git/commit
io/fs: add ReadDir and ReadDirFS
authorRuss Cox <rsc@golang.org>
Mon, 6 Jul 2020 15:26:56 +0000 (11:26 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 20 Oct 2020 17:53:07 +0000 (17:53 +0000)
commit7a131acfd142f0fc7612365078b9f00e371fc0e2
tree710fa5c5503dea43b36d1da6d958b9ee05567fce
parent10a1a1a37c007adef8425d273e6b276547982889
io/fs: add ReadDir and ReadDirFS

Add ReadDir helper function, ReadDirFS interface, and test.
Add ReadDir method to fstest.MapFS.
Add testing of ReadDir method to fstest.TestFS.

For #41190.

Change-Id: Ib860770ec7433ba77b29e626682b238f1b3bf54f
Reviewed-on: https://go-review.googlesource.com/c/go/+/243914
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/io/fs/readdir.go [new file with mode: 0644]
src/io/fs/readdir_test.go [new file with mode: 0644]
src/testing/fstest/mapfs.go
src/testing/fstest/testfs.go