Author: bvahdat
Date: Thu Dec 20 12:45:16 2012
New Revision: 1424437

URL: http://svn.apache.org/viewvc?rev=1424437&view=rev
Log:
CAMEL-5792: Fixed the regression by SftpProducerFileWithPathNoStepwiseTest.

Modified:
    
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java

Modified: 
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java?rev=1424437&r1=1424436&r2=1424437&view=diff
==============================================================================
--- 
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
 (original)
+++ 
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
 Thu Dec 20 12:45:16 2012
@@ -383,8 +383,9 @@ public class SftpOperations implements R
             return;
         }
 
-        // must compact path so FTP server can traverse correctly
-        path = FileUtil.compactPath(path);
+        // must compact path so SFTP server can traverse correctly, make use 
of the '/'
+        // separator because JSch expects this as the file separator even on 
Windows
+        path = FileUtil.compactPath(path, '/');
 
         // not stepwise should change directory in one operation
         if (!endpoint.getConfiguration().isStepwise()) {


Reply via email to