github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/vfs/vfstest/vfs.go (about)

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