Hi

Try with a later release as the FTP component have been improved on
the times. I think we have fixes something similar like this in a
later release.


On Thu, Dec 16, 2010 at 11:05 AM, mikaelfj <mikae...@gmail.com> wrote:
>
> Hi,
>
> We are delivering files to an FTP server with the URI option
> tempPrefix=.uploading and nothing set for the fileExists option, i.e. it
> will default to override of an existing file.
>
> However, if uploading, say, "file.txt" twice, the second upload will fail
> with a rename error - as the renaming from ".uploadingfile.txt" to
> "file.txt" fails as "file.txt" already exists on the FTP server.
>
> My expectations would be, that the fileExists default to override should
> apply in this case, and somehow force the ftp server to overwrite the
> existing file in the renaming.
>
> It looks like the FTP servers do not provide a common implementation of
> rename - but then Camel could, e.g. delete the target file and retry the
> rename if fileexist is override.
>
> (We are running this on Camel 2.2)
>
> Any ideas on how to overcome this?
>
> /Mikael
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Problem-renaming-existing-file-in-FTP-tp3307670p3307670.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