Finds a valid path for a file from a FileStatus object. @param fileStatus FileStatus object corresponding to a file, or a directory. @param fileSystem FileSystem in with the file should be found @return The first file found @throws IOException
(final FileStatus[] statusArray,
final FileSystem fileSystem)
| 622 | */ |
| 623 | |
| 624 | public static Path depthFirstSearchForFile(final FileStatus[] statusArray, |
| 625 | final FileSystem fileSystem) throws IOException { |
| 626 | return depthFirstSearchForFile(statusArray, fileSystem, null); |
| 627 | } |
| 628 | |
| 629 | /** |
| 630 | * Finds a valid path for a file from an array of FileStatus objects. |
no test coverage detected