github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/fstest/mockdir/dir.go (about) 1 // Package mockdir makes a mock fs.Directory object 2 package mockdir 3 4 import ( 5 "time" 6 7 "github.com/rclone/rclone/fs" 8 ) 9 10 // New makes a mock directory object with the name given 11 func New(name string) fs.Directory { 12 return fs.NewDir(name, time.Time{}) 13 }