Don't import JSON dashboards from hidden directories.

This commit is contained in:
Tom Wilkie 2017-11-17 17:21:49 +00:00
parent 6595be95eb
commit 0015183a7b

View File

@ -90,6 +90,9 @@ func (index *JsonDashIndex) updateIndex() error {
return err
}
if f.IsDir() {
if strings.HasPrefix(f.Name(), ".") {
return filepath.SkipDir
}
return nil
}