You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2009/01/13 13:43:13 UTC
svn commit: r734117 -
/activemq/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
Author: davsclaus
Date: Tue Jan 13 04:43:02 2009
New Revision: 734117
URL: http://svn.apache.org/viewvc?rev=734117&view=rev
Log:
CAMEL-1247: Fixed sftp consumer not working on Windows platforms due no symlinks
Modified:
activemq/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
Modified: activemq/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java?rev=734117&r1=734116&r2=734117&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java (original)
+++ activemq/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java Tue Jan 13 04:43:02 2009
@@ -52,13 +52,13 @@
// recursive scan and add the sub files and folders
pollDirectory(file.getFilename(), fileList);
}
- } else if (!file.getAttrs().isLink()) {
+ // we cannot use file.getAttrs().isLink on Windows, so we dont invoke the method
+ // just assuming its a file we should poll
+ } else {
if (isValidFile(remote, false)) {
// matched file so add
fileList.add(remote);
}
- } else {
- log.debug("Ignoring unsupported remote file type: " + file);
}
}
}