FileExists returns true if the file exists. It returns false if the file doesn't exist or there is an error checking.
(path string)
| 76 | // FileExists returns true if the file exists. It returns false if the file |
| 77 | // doesn't exist or there is an error checking. |
| 78 | func (actor Actor) FileExists(path string) bool { |
| 79 | _, err := os.Stat(path) |
| 80 | return err == nil |
| 81 | } |
| 82 | |
| 83 | func (actor Actor) GetAndValidatePlugin(pluginMetadata PluginMetadata, commandList CommandList, path string) (configv3.Plugin, error) { |
| 84 | plugin, err := pluginMetadata.GetMetadata(path) |
no outgoing calls
no test coverage detected