Split into packages only manually tested

This commit is contained in:
Bel LaPointe
2019-11-09 18:51:03 -07:00
parent 0d497f4fa8
commit 60dc6bc876
48 changed files with 530 additions and 125 deletions

19
filetree/files.go Executable file
View File

@@ -0,0 +1,19 @@
package filetree
import (
"os"
"path"
)
type Files []Path
func NewFiles() *Files {
d := Files([]Path{})
return &d
}
func (d *Files) Push(p Path, f os.FileInfo) {
if !f.IsDir() {
*d = append(*d, NewPathFromLocal(path.Join(p.Local, f.Name())))
}
}