nirvash/archetype/staticFileManager.go

16 lines
317 B
Go

package archetype
type StaticFileManager struct {
Root string
ShowHtml bool
ShowHidden bool
}
type FileManager interface {
Init(cfg Config) error
ListTree() []string
ListSubTree(root string) []string
AddFile(path string, file interface{}) error
MkDir(path string) error
Remove(path string) error
}