Skip to content

Commit bf2531c

Browse files
committed
fixed indentation
1 parent 73da62f commit bf2531c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • core-java-modules/core-java-io-3/src/main/java/com/baeldung/copydirectory

core-java-modules/core-java-io-3/src/main/java/com/baeldung/copydirectory/JavaNio.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ public class JavaNio {
99

1010
public static void copyDirectory(String sourceDirectoryLocation, String destinationDirectoryLocation) throws IOException {
1111
Files.walk(Paths.get(sourceDirectoryLocation))
12-
.forEach(source -> {
13-
Path destination = Paths.get(destinationDirectoryLocation, source.toString()
14-
.substring(sourceDirectoryLocation.length()));
15-
try {
16-
Files.copy(source, destination);
17-
} catch (IOException e) {
18-
e.printStackTrace();
19-
}
20-
});
12+
.forEach(source -> {
13+
Path destination = Paths.get(destinationDirectoryLocation, source.toString()
14+
.substring(sourceDirectoryLocation.length()));
15+
try {
16+
Files.copy(source, destination);
17+
} catch (IOException e) {
18+
e.printStackTrace();
19+
}
20+
});
2121
}
2222
}

0 commit comments

Comments
 (0)