mirror of
https://github.com/rclone/rclone.git
synced 2024-12-12 20:33:50 +08:00
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.
21 lines
300 B
Go
21 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{}
|