HADOOP-19277. Files and directories mixed up in TreeScanResults#dump (#7047)

This commit is contained in:
Doroszlai, Attila 2024-09-17 12:25:57 +02:00 committed by GitHub
parent 4d968add52
commit 182feb11a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1922,10 +1922,10 @@ public String toString() {
*/
private String dump() {
StringBuilder sb = new StringBuilder(toString());
sb.append("\nFiles:");
sb.append("\nDirectories:");
directories.forEach(p ->
sb.append("\n \"").append(p.toString()));
sb.append("\nDirectories:");
sb.append("\nFiles:");
files.forEach(p ->
sb.append("\n \"").append(p.toString()));
return sb.toString();