3 ms·
This (recent but buried) comment suggests replacing FileInfo in the ReadDirFS interface with a DirEntry type, for reasons of performance and future extensibilit
by networkimprov 6y ago
This (recent but buried) comment suggests replacing FileInfo in the ReadDirFS interface with a DirEntry type, for reasons of performance and future extensibility:
https://www.reddit.com/r/golang/comments/hv976o/qa_iofs_draft_design/g0hwjij/ https://www.reddit.com/r/golang/comments/hv976o/qa_iofs_draf...
It was prompted by this proposal for os.Readdirentries():
https://github.com/golang/go/issues/40352 https://github.com/golang/go/issues/40352
It seems to me that FileInfo isn't a suitable interface for either a general filesystem construct, or a performant implementation.