github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/vfs/vfstest/vfs.go (about)

     1  // Package vfstest provides tests for VFS.
     2  package vfstest
     3  
     4  import (
     5  	"os"
     6  
     7  	"github.com/rclone/rclone/vfs"
     8  )
     9  
    10  // vfsOs is an implementation of Oser backed by the "vfs" package
    11  type vfsOs struct {
    12  	*vfs.VFS
    13  }
    14  
    15  // Stat
    16  func (v vfsOs) Stat(path string) (os.FileInfo, error) {
    17  	return v.VFS.Stat(path)
    18  }
    19  
    20  // Check interfaces
    21  var _ Oser = vfsOs{}