MCPcopy Index your code
hub / github.com/cloudfoundry/cli / FileExists

Method FileExists

actor/pluginaction/install.go:78–81  ·  view source on GitHub ↗

FileExists returns true if the file exists. It returns false if the file doesn't exist or there is an error checking.

(path string)

Source from the content-addressed store, hash-verified

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

Callers 1

UninstallPluginMethod · 0.95

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls

no outgoing calls

Tested by

no test coverage detected