mirror of
https://github.com/grafana/grafana.git
synced 2025-09-20 20:54:29 +08:00
Don't import JSON dashboards from hidden directories.
This commit is contained in:
@ -90,6 +90,9 @@ func (index *JsonDashIndex) updateIndex() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if f.IsDir() {
|
if f.IsDir() {
|
||||||
|
if strings.HasPrefix(f.Name(), ".") {
|
||||||
|
return filepath.SkipDir
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user