]> Cypherpunks repositories - gostls13.git/commit
io/fs: add Stat and StatFS
authorRuss Cox <rsc@golang.org>
Mon, 6 Jul 2020 15:26:45 +0000 (11:26 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 20 Oct 2020 17:53:02 +0000 (17:53 +0000)
commit10a1a1a37c007adef8425d273e6b276547982889
tree66ad2234602ede6a2beb4c51ec74b4fd1dffbc91
parentf098ccf04a33e2e4d2dffa2e90fe77ca8a0fcbb4
io/fs: add Stat and StatFS

Add Stat helper function, StatFS interface, and test.
Add Stat method to fstest.MapFS.
Add testing of Stat method to fstest.TestFS.

For #41190.

Change-Id: Icf8b6eb1c3fa6f93a9be8405ec5a9468fb1da97b
Reviewed-on: https://go-review.googlesource.com/c/go/+/243913
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/io/fs/stat.go [new file with mode: 0644]
src/io/fs/stat_test.go [new file with mode: 0644]
src/testing/fstest/mapfs.go
src/testing/fstest/testfs.go