File producer should use local file from local work directory if exists 
------------------------------------------------------------------------

                 Key: CAMEL-1347
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1347
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core, camel-ftp
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.0.0


Just an optimization

When you consume from eg a FTP server and use the local work directory option 
to stream the remote file directly into a local work file, and afterwards route 
it to a file producer to store the file (again) the file producer should 
optimize and just rename the local work file if possible.

Then:
{code}
from("ftp://m...@someserver:21/inbox?password=secret&localWorkDirectory=/tmp";).to("file:///myapp/inbox");
{code}

Will be optimized to rename the file from the /tmp folder to the /myapp/inbox 
folder instead of doing a file copy.

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

Reply via email to