cli: Ignore symlinks inside a directory walk

This commit is contained in:
Alfredo Beaumont 2017-08-01 11:54:48 +02:00
parent c4e4848aae
commit faeecb93ed

@ -49,6 +49,10 @@ func main() {
return filepath.SkipDir
}
if !f.Mode().IsDir() && !f.Mode().IsRegular() {
return nil
}
relativePath, err := filepath.Rel(root, path)
if err != nil {
log.Println(err)