asFiles enumerates the files that are found at "path" If a DataValuesFlags.ReadFilesFunc has been injected, that service is used. Otherwise, uses files.NewSortedFilesFromPaths() is used.
(path string)
| 375 | // If a DataValuesFlags.ReadFilesFunc has been injected, that service is used. |
| 376 | // Otherwise, uses files.NewSortedFilesFromPaths() is used. |
| 377 | func (s *DataValuesFlags) asFiles(path string) ([]*files.File, error) { |
| 378 | if s.ReadFilesFunc != nil { |
| 379 | return s.ReadFilesFunc(path) |
| 380 | } |
| 381 | return files.NewSortedFilesFromPaths([]string{path}, *s.SymlinkAllowOpts) |
| 382 | } |
no test coverage detected