MCPcopy
hub / github.com/cloudfoundry/cli / loadIgnoreFile

Function loadIgnoreFile

cf/appfiles/app_files.go:214–221  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

212}
213
214func loadIgnoreFile(dir string) CfIgnore {
215 fileContents, err := ioutil.ReadFile(filepath.Join(dir, ".cfignore"))
216 if err != nil {
217 return NewCfIgnore("")
218 }
219
220 return NewCfIgnore(string(fileContents))
221}

Callers 1

WalkAppFilesMethod · 0.85

Calls 1

NewCfIgnoreFunction · 0.85

Tested by

no test coverage detected