Hi

We have discussed this before. Maybe search this forum. Its a general
issue when sharing data with files.
How to know when the file is ready for me to read.

Its generally better to have the person who writes the file, to do
that in another folder / or use a temporary name.
Then when he is done, then just rename/move the file (atomic IO
operation on the server).

Another strategy is to write a DONE file or something, so the other
know that when there is a DONE file he can start reading that file.


On Tue, Dec 14, 2010 at 10:05 AM, nspadaro <nicholas.spad...@yahoo.it> wrote:
>
> Hi all,
> I have a route who pool on an sftp folder, and when find a file download and
> delete it. The problem is that it download and delete the file even if it's
> not completed the upload. There is a way other than delay the operation to
> check for the end of file? I'm using camel 2.3.0.
>
> Thanks in advice for help.
>
> Nicholas
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Sftp-access-to-file-that-are-not-yet-finished-to-be-written-tp3304269p3304269.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to