mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 17:57:44 +08:00
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{}
|