io/fs: errors in WalkDirFunc documentation #43536
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
There are some errors in the documentation of the new
fs.WalkDirFunc
type, probably because copied from thefilepath.WalkFunc
documentation.The
fs.WalkDir
function is calledWalk
several times instead ofWalkDir
as in "if Walk is called with root argument ...".The documentation says:
But if
WalkDir
is called with argument "x/../dir", the walk function is called with arguments "x/../dir" and a path error, and as documented below, theWalkDir
will not walk into that directory so it will not call the walk function with argument "dir/a" as documented.The documentation says:
Should be
fs.Stat
instead ofos.Lstat
.os.Lstat
is related to the file system implementation.The text was updated successfully, but these errors were encountered: