Merge pull request #88 from abeaumont/fix/ignore-symlinks-while-dirwalking

cli: Ignore symlinks inside a directory walk
This commit is contained in:
Alfredo Beaumont 2017-08-02 10:51:36 +02:00 committed by GitHub
commit bac0ef279c

View File

@ -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)