code: func (m *Meta) storePluginPath(pluginPath []string) error {
  	if len(pluginPath) == 0 {
  		return nil
  	}
  
  	path := filepath.Join(m.DataDir(), PluginPathFile)
  
  	// remove the plugin dir record if the path was set to an empty string
  	if len(pluginPath) == 1 && (pluginPath[0] == "") {
  		err := os.Remove(path)
  		if !os.IsNotExist(err) {
  			return err
  		}
  		return nil
  	}
  
  	js, err := json.MarshalIndent(pluginPath, "", "  ")
  	if err != nil {
  		return err
  	}
  
  	// if this fails, so will WriteFile
  	os.MkdirAll(m.DataDir(), 0755)
  
  	return ioutil.WriteFile(path, js, 0644)
  }
docs: // store the user-supplied path for plugin discovery