camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject svn commit: r761015 - /camel/branches/camel-1.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java
Date Wed, 01 Apr 2009 19:04:51 GMT
Author: janstey
Date: Wed Apr  1 19:04:50 2009
New Revision: 761015

URL: http://svn.apache.org/viewvc?rev=761015&view=rev
Log:
Revert my previous change, it wasn't needed

Modified:
    camel/branches/camel-1.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java

Modified: camel/branches/camel-1.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java?rev=761015&r1=761014&r2=761015&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java
(original)
+++ camel/branches/camel-1.x/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpConsumer.java
Wed Apr  1 19:04:50 2009
@@ -102,7 +102,7 @@
             if (endpoint.getConfiguration().isDirectory()) {
                 pollDirectory(fileName);
             } else {
-                int index = fileName.lastIndexOf(File.separatorChar);
+                int index = fileName.lastIndexOf('/');
                 if (index > -1) {
                     // cd to the folder of the filename
                     client.changeWorkingDirectory(fileName.substring(0, index));



Mime
View raw message