fixed bug if input dir doesn't exist.

This commit is contained in:
Stephen McQuay 2016-05-18 21:04:21 -07:00
parent a37d88f99f
commit 126a948fd4
No known key found for this signature in database
GPG Key ID: 1ABF428F71BAFC3D

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
}