io/fs: add clearer documentation for "unrooted" paths #42716
Labels
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
io/fs
requires "unrooted" paths, but it is currently only documented in passing underio/fs.ValidPath
.This may be surprising to many developers starting to use
io/fs
. Eg, walking "/" onos.DirFS
orembed.FS
filesystems will fail. Walking "." is less obvious since this is traditionally associated with the current working directory which doesn't exist for virtual filesystems.Cc @rsc
The text was updated successfully, but these errors were encountered: