Hi Bela About the move ============== How sophisticated do you want the move operation?
The file component *only* supports setting a pre and post fix to the name. With the prefix you can move it to a subfolder. And with the postfix you can append ".done" or what you like to the filename. If you move it to a subfolder then we can potential have the same problem that if the folder doesn't exists then we need to create it as well. But I agree it is a valid point of having the same move options in camel-ftp as we have in the FileConsumer. As you have a SFTP server I assume you can help test it on this server? We only have unit test servers for the regular FTP (= non SFTP). So we most relay on the codebase is 100% identical between FTP and SFTP to be more sure that the SFTP part is also working. I have created CAMEL-764 to track it. Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Bela [mailto:[EMAIL PROTECTED] Sent: 28. juli 2008 02:07 To: [email protected] Subject: RE: SftpProducer bug I attached a patch to CAMEL-758. Did I do it right? This is my first ,,, -B Bela wrote: > > Claus, > > It works only if the last folder is missing. It seems the sftp servers > don't create intrermediate folders for you. At least my server doesn't > (out of the box Fedora 7). So I think we have to bring back the code to > create the folders on by one. Let me know if you want me to take a crack > at it. > > But there's good news: The delete option works nicely on the consumer. How > about the move (rename) like the file consumer? > > -Bela > > > Claus Ibsen wrote: >> >> Hi Bela >> >> I have committed a fix in camel-ftp. >> http://svn.apache.org/viewvc?view=rev&revision=679979 >> >> Could you try the latest code from trunk? >> Or jump on 1.5-SNAPSHOT if you are using maven. >> >> > > -- View this message in context: http://www.nabble.com/SftpProducer-bug-tp18640519s22882p18682198.html Sent from the Camel - Users mailing list archive at Nabble.com.
