fd39cbc193
The tests are now run for the mount commands and for the plain VFS. This makes the tests much easier to debug when running with a VFS than through a mount.
20 lines
300 B
Go
20 lines
300 B
Go
package vfstest
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/rclone/rclone/vfs"
|
|
)
|
|
|
|
// vfsOs is an implementation of Oser backed by the "vfs" package
|
|
type vfsOs struct {
|
|
*vfs.VFS
|
|
}
|
|
|
|
// Stat
|
|
func (v vfsOs) Stat(path string) (os.FileInfo, error) {
|
|
return v.VFS.Stat(path)
|
|
}
|
|
|
|
// Check interfaces
|
|
var _ Oser = vfsOs{}
|