io/fs: misleading documentation of Glob function #43537
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
The documentation of the new
fs.Glob
function is a bit misleading.When it says
the last sentence is correct but refers to a specific OS file system implementation, as the file system returned by the
os.DirFS
function. If "/usr/*/bin/ed" is used as pattern argument toGlob
, it will never return any files because the names returned byGlob
are unrooted.The text was updated successfully, but these errors were encountered: