fixed bug if input dir doesn't exist.

This commit is contained in:
sm
2016-05-18 21:04:38 -07:00
parent a37d88f99f
commit 126a948fd4
+3
View File
@@ -53,6 +53,9 @@ func Source(root string) <-chan string {
err := filepath.Walk(
root,
func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
if info.IsDir() {
return nil
}