private static int[] findMaxLengths(final List<String[]> pathList) {
        int[] m = new int[1];
        for (final String[] s : pathList) {
            if (s.length > m.length) {
                m = Arrays.copyOf(m, s.length);
            }
            for (int i = 0; i < s.length; i++) {
                if (s[i].length() > m[i]) {
                    m[i] = s[i].length();
                }
            }
        }
        return m;
    }
Recursively search the specified path and list TIFF files and metadata.
<p>
Command-line Arguments:
</p>
<ol>
<li>Top-level directory (mandatory)</li>
<li>Output file for results (optional)</li>
</ol>
If the optional output file has the extension ".csv", the output will be formatted as a comma-separated-value file suitable for inspection in Excel.
src/test/java/org/apache/commons/imaging/examples/tiff/SurveyTiffFolder.java