mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 13:56:27 +01:00
18 lines
213 B
Go
18 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,
|
|
}
|
|
}
|