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 } |