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
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
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
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;
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