tools/godoc/vfs
Peter Weinberger 365db56d19 tools: clean up after removing all references to ioutil
Although ioutil.ReadDir is deprecated, the suggested replacement has
a different signature, returning []fs.DirEntry rather than []fs.FileEntry.

Some of the places where this occurs are better left referring to ioutil,
as build.Config wants the old behavior. (go/buildutil/util.go and
godoc/vfs/os.go) When someday build gets updated, these can be easily
found, and changed.

Some of the place use Mode().IsRegular() (cmd/toolstash/mail.go and
internal/fastwalk/fastwal_portable.go) and the code needs a minor adjustment.

And, happily, in all the other  places one can use os.ReadDir directly
as only Name() is called.

There are no remaining instances of the generated ioutilReadDir().

Change-Id: I165ca27eafe2fe37fdf14390543b21f7e198281e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/528135
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Peter Weinberger <pjw@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2023-09-18 16:47:49 +00:00
..
gatefs godoc/vfs: improve implementation of RootType 2018-04-11 20:41:25 +00:00
httpfs tools: add import comments. 2014-12-09 22:42:16 +00:00
mapfs tools: replace references to obsolete package ioutils 2023-09-12 20:13:37 +00:00
zipfs tools: replace references to obsolete package ioutils 2023-09-12 20:13:37 +00:00
emptyvfs.go all: remove repetitive words 2023-07-19 19:13:53 +00:00
fs.go all: go fmt ./... 2021-02-20 03:28:52 +00:00
namespace.go tools: clean up after removing all references to ioutil 2023-09-18 16:47:49 +00:00
namespace_test.go godoc/vfs: fix union logic in NameSpace.ReadDir 2019-09-30 20:11:59 +00:00
os.go tools: clean up after removing all references to ioutil 2023-09-18 16:47:49 +00:00
os_test.go godoc/vfs: improve implementation of RootType 2018-04-11 20:41:25 +00:00
vfs.go tools: replace references to obsolete package ioutils 2023-09-12 20:13:37 +00:00