From cab1990310e28274cf13dcbb46d8e9d629d7ae77 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 26 Aug 2024 18:08:58 +0100 Subject: [PATCH] Note that os.FileInfo.Sys() may return a file.FileInfo --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a92f706..9121152 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,8 @@ which do not translate to this abstraction. In particular, the `Sys()` escape hatch is queried by this library, and if your file system populates a [`syscall.Stat_t`](https://golang.org/pkg/syscall/#Stat_t) concrete struct, the ownership specified in that object will be used. + You can also return a [`file.FileInfo`](https://github.com/willscott/go-nfs/blob/master/file/file.go#L5) + which doesn't vary between platforms so may be easier to deal with. * Relevant RFCS: [5531 - RPC protocol](https://tools.ietf.org/html/rfc5531),