I have created some unit tests and cannot reproduce this issue.
http://svn.apache.org/viewvc?view=revision&revision=1050041

Camel will delete any existing files.

There is even an option eagerDeleteTargetFile you can decide to do
this eager (= asap) or later (after writing the temporary file).



On Thu, Dec 16, 2010 at 12:49 PM, mikaelfj <mikae...@gmail.com> wrote:
>
> Just tried with 2.4 and 2.5 - they both seem to have the same problem as 2.2.
>
> At the second upload of the file to the FTP server, they throw this
> exception:
>
> org.apache.camel.component.file.GenericFileOperationFailedException,
> message:Cannot rename file from: rename/.uploadingTest.REN to:
> rename/Test.REN
>
> I.e. having fileExists=override and tempPrefix=.uploading conflicts as the
> rename of the tempPrefix'ed file fails and thus do not deliver the
> "override" semantics - which should have provided that the file
> rename/Test.REN was replaced with the new Test.REN.
>
> Is this in the pipeline for 2.6?
>
> Regards
> Mikael
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Problem-renaming-existing-file-in-FTP-tp3307670p3307802.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