mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] lgoldstein commented on a change in pull request #88: Fix download with pattern issue in rooted filesystem
Date Mon, 11 Feb 2019 09:59:03 GMT
lgoldstein commented on a change in pull request #88: Fix download with pattern issue in rooted
filesystem
URL: https://github.com/apache/mina-sshd/pull/88#discussion_r255436920
 
 

 ##########
 File path: sshd-scp/src/main/java/org/apache/sshd/common/scp/ScpHelper.java
 ##########
 @@ -401,9 +401,11 @@ public void send(Collection<String> paths, boolean recursive,
boolean preserve,
                 }
 
                 Session session = getSession();
-                Iterable<String> included = opener.getMatchingFilesToSend(session,
basedir, pattern);
+                Path basePath = resolveLocalPath(basedir);
+                Iterable<String> included = opener.getMatchingFilesToSend(session,
basePath.toFile().getAbsolutePath(), pattern);
+
                 for (String path : included) {
 
 Review comment:
   Please don't use `toFile` - if you want the absolute path then use `basePath.toAbsolutePath().toString()`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message