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

Method CountFiles

cf/appfiles/app_files.go:166–173  ·  view source on GitHub ↗
(directory string)

Source from the content-addressed store, hash-verified

164}
165
166func (appfiles ApplicationFiles) CountFiles(directory string) int64 {
167 var count int64
168 appfiles.WalkAppFiles(directory, func(_, _ string) error {
169 count++
170 return nil
171 })
172 return count
173}
174
175func (appfiles ApplicationFiles) WalkAppFiles(dir string, onEachFile func(string, string) error) error {
176 cfIgnore := loadIgnoreFile(dir)

Callers

nothing calls this directly

Calls 1

WalkAppFilesMethod · 0.95

Tested by

no test coverage detected