Skip to content

Commit

Permalink
typo [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Stenzel committed Dec 29, 2015
1 parent 2603031 commit 3998a7c
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -19,16 +19,16 @@ private DirectoryPrinter() {


public static String print(Folder rootFolder) { public static String print(Folder rootFolder) {
StringBuilder result = new StringBuilder(); StringBuilder result = new StringBuilder();
StringBuilder identation = new StringBuilder(); StringBuilder indentation = new StringBuilder();
fileSystemVisitor() // fileSystemVisitor() //
.beforeFolder(folder -> { .beforeFolder(folder -> {
result.append(identation).append(folder.name()).append("/\n"); result.append(indentation).append(folder.name()).append("/\n");
identation.append(" "); indentation.append(" ");
}) // }) //
.afterFolder(folder -> { .afterFolder(folder -> {
identation.delete(identation.length() - 2, identation.length()); indentation.delete(indentation.length() - 2, indentation.length());
}).forEachFile(file -> { }).forEachFile(file -> {
result.append(identation).append(file.name()).append('\n'); result.append(indentation).append(file.name()).append('\n');
}) // }) //
.visit(rootFolder); .visit(rootFolder);
return result.toString(); return result.toString();
Expand Down

0 comments on commit 3998a7c

Please sign in to comment.