(dir string, names ...string)
| 394 | } |
| 395 | |
| 396 | func fileExistsAny(dir string, names ...string) bool { |
| 397 | for _, name := range names { |
| 398 | if fileExists(dir, name) { |
| 399 | return true |
| 400 | } |
| 401 | } |
| 402 | return false |
| 403 | } |
| 404 | |
| 405 | const maxDetectionFileSize = 10 * 1024 * 1024 // 10 MB. |
| 406 |
no test coverage detected