Don't import JSON dashboards from hidden directories.
This commit is contained in:
1 parent
6595be95eb
commit
0015183a7b
1 file changed
+3
@@ -90,6 +90,9 @@ func (index *JsonDashIndex) updateIndex() error {
|
||||
return err
|
||||
}
|
||||
if f.IsDir() {
|
||||
if strings.HasPrefix(f.Name(), ".") {
|
||||
return filepath.SkipDir
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user