mirror of
https://github.com/rclone/rclone
synced 2024-11-11 09:30:44 +01:00
11da2a6c9b
The purpose of this is to make it easier to maintain and eventually to allow the rclone backends to be re-used in other projects without having to use the rclone configuration system. The new code layout is documented in CONTRIBUTING.
14 lines
251 B
Go
14 lines
251 B
Go
// Package mockdir makes a mock fs.Directory object
|
|
package mockdir
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/ncw/rclone/fs"
|
|
)
|
|
|
|
// New makes a mock directory object with the name given
|
|
func New(name string) fs.Directory {
|
|
return fs.NewDir(name, time.Time{})
|
|
}
|