mirror of https://github.com/stashapp/stash.git
19 lines
213 B
Go
19 lines
213 B
Go
|
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,
|
||
|
}
|
||
|
}
|