all repos — nirvash @ 034d325ae36cd0f3978721ef7c0370809e2a918f

modular CMS using the quartzgun library

archetype/staticFileManager.go (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}