Skip to content

Commit dd61365

Browse files
committed
vfs: add Unwrap to loggingFS
As a wrapping VFS implementation, it should implement Unwrap and return the contained FS.
1 parent e56c4c9 commit dd61365

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vfs/logging_fs.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ func (fs loggingFS) RemoveAll(name string) error {
118118
return err
119119
}
120120

121+
func (fs loggingFS) Unwrap() FS {
122+
return fs.FS
123+
}
124+
121125
type loggingFile struct {
122126
File
123127
name string

0 commit comments

Comments
 (0)