aboutsummaryrefslogtreecommitdiff
path: root/fstest/mockdir/dir.go
blob: 103692910a0ad1473790340eafc3e622c6328d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Package mockdir makes a mock fs.Directory object
package mockdir

import (
	"time"

	"github.com/rclone/rclone/fs"
)

// New makes a mock directory object with the name given
func New(name string) fs.Directory {
	return fs.NewDir(name, time.Time{})
}