garydgregory commented on a change in pull request #203:
URL: https://github.com/apache/commons-io/pull/203#discussion_r573130447



##########
File path: src/main/java/org/apache/commons/io/file/CopyDirectoryVisitor.java
##########
@@ -144,7 +144,7 @@ public int hashCode() {
     @Override
     public FileVisitResult preVisitDirectory(final Path directory, final 
BasicFileAttributes attributes)
         throws IOException {
-        final Path newTargetDir = 
targetDirectory.resolve(sourceDirectory.relativize(directory));
+        final Path newTargetDir = 
targetDirectory.resolve(sourceDirectory.relativize(directory).toString());

Review comment:
       Hi @ashcheglov 
   I think we need a comment as to why toString() is _required_.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to