Hi

You can use wireshark or something to trace what gets send over the network.
Then you can check that DELETE being sent or not.

Also on Camel 2.4 we have fixed an issue with using absolute paths.
Many FTP clients sends file paths using absolute, eg they start with a /
Maybe that remote FTP server expect that when deleting files.

To use absolute paths just add a 2nd / in the endpoint uri
     myu...@myftpserver:21//hereIsTwoSlashes/subfolder

This fix is in the current source code. You can try a 2.4-SNAPSHOT if you like
http://camel.apache.org/download.html



On Wed, Jul 7, 2010 at 1:16 PM, Morten Engel <m...@alpha-solutions.dk> wrote:
>
> This resulted in the exact same log pattern on my side, except the 4 lines
> below missing:
>
> 11:47:49,906 | TRACE |  0: FtpComponent | GenericFileProducer              |
> mponent.file.GenericFileProducer   69 | Processing Exchange[Message:
> GenericFile[test3.txt]]
> 11:47:49,906 | TRACE |  0: FtpComponent | GenericFileProducer              |
> mponent.file.GenericFileProducer  192 | About to write [C:\test\test3.txt]
> to [Endpoint[file://C:/test]] from exchange [Exchange[Message:
> GenericFile[test3.txt]]]
> 11:47:49,906 | TRACE |  0: FtpComponent | FileOperations                   |
> el.component.file.FileOperations  269 | Using InputStream to transfer from:
> java.io.bytearrayinputstr...@19264e3 to: sun.nio.ch.filechanneli...@1d8867
> 11:47:49,906 | DEBUG |  0: FtpComponent | GenericFileProducer              |
> mponent.file.GenericFileProducer  200 | Wrote [C:\test\test3.txt] to
> [Endpoint[file://C:/test]]
>
>
> Which I guess makes good sense, as we no longer process the file into a new
> file endpoint.
>
> However, I'm guessing it brings us no closer as to what the problem is?
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Problems-deleting-or-moving-files-from-FTP-source-tp911101p1044673.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to