]> Cypherpunks.ru repositories - gostls13.git/commit
io/fs: implement FileInfoToDirEntry
authorMichel Levieux <mlevieux42@gmail.com>
Thu, 18 Feb 2021 14:53:46 +0000 (15:53 +0100)
committerIan Lance Taylor <iant@golang.org>
Thu, 25 Mar 2021 21:35:05 +0000 (21:35 +0000)
commit374b1904750931ed09d342e3c4c6e01fdb2802aa
treee5efaeeca3f7aff35d441e79777b55aa13da3505
parent11b4aee05bfe83513cf08f83091e5aef8b33e766
io/fs: implement FileInfoToDirEntry

Implements FileInfoToDirEntry which converts an fs.FileInfo to fs.DirEntry.

Fixes #42387.

Change-Id: Ie723b6ed583c6c5ecf22bbe64e3b6496f5114254
Reviewed-on: https://go-review.googlesource.com/c/go/+/293649
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
src/io/fs/readdir.go
src/io/fs/readdir_test.go