Commit 0015183a by Tom Wilkie

Don't import JSON dashboards from hidden directories.

parent 6595be95
...@@ -90,6 +90,9 @@ func (index *JsonDashIndex) updateIndex() error { ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment