Hi, You probably want to use the flatten=true url parameter, otherwise the full qualified filename (including the path) is used as a filename in file to file communication (SFTP is a remote file in this sense...). See the documentation of the camel file component for details.
Best regards Stephan -----Original Message----- From: emmanuel [mailto:etrai...@bouyguestelecom.fr] Sent: Donnerstag, 23. Mai 2013 17:30 To: users@camel.apache.org Subject: Sftp component problem Hello, I use sftp component to transfer file on a local directory : sftp://${login}@${host}:${port}/${path}?localWorkDirectory=${DATA_PATH}/LOCAL/WRK&delay=${delay}&knownHostsFile=${transfer.knownHosts}&privateKeyFile=${transfer.privateKeyFile}&filter=#EP_IN_FILTER&delete=true I have encountered a problem if my path is absolute : path=/usr/users/camel/data/ Camel copy "my_file.xml" on my ${DATA_PATH}/LOCAL/WRK but add the complete path like this : ${DATA_PATH}/LOCAL/WRK/usr/users/camel/data/my_file.xml but expect to find the file here :${DATA_PATH}/LOCAL/WRK/my_file.xml And finally if my path is path=/usr/users/camel/data (unless the / at the end of path) my file is putted on ${DATA_PATH}/LOCAL/WRK/my_file.xml -- View this message in context: http://camel.465427.n5.nabble.com/Sftp-component-problem-tp5733034.html Sent from the Camel - Users mailing list archive at Nabble.com.