stash/vendor/github.com/gobuffalo/genny/dir.go

19 lines
213 B
Go
Raw Normal View History

2019-02-09 12:30:49 +00:00
package genny
import "os"
var _ File = Dir{}
type Dir struct {
File
Perm os.FileMode
}
func NewDir(path string, perm os.FileMode) File {
f := NewFileS(path, path)
return Dir{
File: f,
Perm: perm,
}
}