mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-12 22:42:23 +00:00
Merge pull request #88 from abeaumont/fix/ignore-symlinks-while-dirwalking
cli: Ignore symlinks inside a directory walk
This commit is contained in:
commit
bac0ef279c
@ -49,6 +49,10 @@ func main() {
|
|||||||
return filepath.SkipDir
|
return filepath.SkipDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !f.Mode().IsDir() && !f.Mode().IsRegular() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
relativePath, err := filepath.Rel(root, path)
|
relativePath, err := filepath.Rel(root, path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user