You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Drew McAuliffe (JIRA)" <ji...@apache.org> on 2008/06/28 03:37:00 UTC

[jira] Updated: (CAMEL-570) FTPComponent - Add delete/move operation

     [ https://issues.apache.org/activemq/browse/CAMEL-570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Drew McAuliffe updated CAMEL-570:
---------------------------------

    Attachment: CAMEL-570.zip

Changed the FTPConsumer and the SFTPConsumer to add an "autoDelete" property that will delete files once processed. A couple of notes:
1. The change includes an update to RemoteFileConfiguration, to provide the "autoDelete" property.
2. The code is based on how the fileConsumer works; namely, it handles the read in an async block rather than the way that the files are handled in the current versions of the consumers.
3. I believe I incorporated a recent change to the 1.4 stream related to error processing; files before weren't getting read if there was an error. I think this was actually a problem in the FileConsumer.
4. Using autodelete bypasses the timestamp check. No need to timestamp check if you're just going to delete everything you read.

So far these changes are working on our project. We use SFTP to pull files down into a local directory, then a file consumer to read them in from there. This gives us the ability to create backups of what was read, something that the FTP/SFTP consumers don't currently allow.

I've said this before and I'll say it again; this would all be a lot easier if there were just one VFS component....

> FTPComponent - Add delete/move operation
> ----------------------------------------
>
>                 Key: CAMEL-570
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-570
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.3.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: CAMEL-570.zip
>
>
> The FTP Component currently does not support an after completion operation such as:
> - delete
> - move
> of the processed file as the File Component does.
> ServiceMix FTP Component has such feature.
> See forum:
> http://www.nabble.com/No-way-to-remove-FTP-SFTP-files--td17612896s22882.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.