go/src/path
Daniel Martí 8c3924c656 path/filepath: reuse os.ReadDir
While reading the source code, I noticed that readDir
seemed extremely similar to os.ReadDir. They indeed appear to be copies.

Note that there's readDirNames as well, but it has no corresponding
os.ReadDirNames top-level helper to be replaced by.

Change-Id: I6fe1d0aeda35dc69bb4531986fe3a21ebda1d877
Reviewed-on: https://go-review.googlesource.com/c/go/+/530795
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-09-29 09:00:12 +00:00
..
filepath path/filepath: reuse os.ReadDir 2023-09-29 09:00:12 +00:00
example_test.go path,path/filepath: add Join examples with ".." components 2020-08-19 00:10:22 +00:00
match.go all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
match_test.go io/fs, path, path/filepath, testing/fstest: validate patterns in Match, Glob 2020-10-23 14:59:03 +00:00
path.go path: use bytealg.LastIndexByteString 2023-09-13 18:34:40 +00:00
path_test.go path: avoid import of strings 2020-10-13 01:12:09 +00:00