package server
import (
"os"
)
type Dirs []Path
func newDirs() *Dirs {
d := Dirs([]Path{})
return &d
}
func (d *Dirs) Push(p string, f os.FileInfo) {
if f.IsDir() {
*d = append(*d, Path{
dir: p,
base: f.Name(),
})