]> Cypherpunks.ru repositories - gostls13.git/commit
path/filepath: reuse os.ReadDir
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 24 Sep 2023 13:41:10 +0000 (14:41 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 29 Sep 2023 09:00:12 +0000 (09:00 +0000)
commit8c3924c6569ceb8183c136e42c9f4b7904a0c031
tree8464be8d01bc39e3cb0899478d4496578a06a480
parent5351bcf8225747f0ef39afc44c0499822992ed11
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>
src/path/filepath/path.go