github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/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  }