We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6c6b50 + 21beb15 commit 0009381Copy full SHA for 0009381
helper/iofs/iofs.go
@@ -16,6 +16,21 @@ func New(fs billyfs.Basic) fs.FS {
16
return &adapterFs{fs: polyfill.New(fs)}
17
}
18
19
+// NewStatFS adapts a billy.Filesystem to a io.fs.StatFS.
20
+func NewStatFS(fs billyfs.Basic) fs.StatFS {
21
+ return &adapterFs{fs: polyfill.New(fs)}
22
+}
23
+
24
+// NewReadDirFS adapts a billy.Filesystem to a io.fs.ReadDirFS.
25
+func NewReadDirFS(fs billyfs.Basic) fs.ReadDirFS {
26
27
28
29
+// NewReadFileFS adapts a billy.Filesystem to a io.fs.ReadFileFS.
30
+func NewReadFileFS(fs billyfs.Basic) fs.ReadFileFS {
31
32
33
34
type adapterFs struct {
35
fs billyfs.Filesystem
36
0 commit comments