Re: deleting files with a camel-ftp endpoint

2010-09-09 Thread Claus Ibsen
Hi Lorrin Yeah I bet we could make it easier to use the FileOperations for end users. However they was meant for component developers. Please feel free to create a JIRA ticket and if possible submit a patch. On Tue, Sep 7, 2010 at 9:27 PM, Lorrin Nelson wrote: > Hi -- > > Thanks for the pointe

Re: deleting files with a camel-ftp endpoint

2010-09-07 Thread Lorrin Nelson
Hi -- Thanks for the pointer towards GenericFileOperations. I wrote a Processor using it that seems to do the trick. But one thing I bumped into is that getting my hands on the file operations requires explicitly coding for a specific implementation. E.g. RemoteFileOperations ops = ne

Re: deleting files with a camel-ftp endpoint

2010-09-02 Thread Claus Ibsen
Hi Please use the user forum for user questions on Camel. And no the FTP producer is ment for storing a file, not deleting a file. However you can leverage the http://camel.apache.org/maven/camel-2.2.0/camel-core/apidocs/src-html/org/apache/camel/component/file/GenericFileOperations.html#line.23

Re: deleting files with a camel-ftp endpoint

2010-09-02 Thread Lorrin Nelson
FWIW, it just took a couple lines to hack SftpOperations.storeFile to have this behavior. Not sure this is the right place for it though. Shall I submit an official patch? @@ -493,6 +493,10 @@ public class SftpOperations implements RemoteFileOperations InputStream is = null;

deleting files with a camel-ftp endpoint

2010-09-02 Thread Lorrin Nelson
Is this possible? I don't see anything indicating how in the docs. I wonder if would be easy to interpret a null message body as a request to delete the target file? Right now a null body results in: org.apache.camel.InvalidPayloadException: No body available of type: java.io.InputStream on: Me