Well, IIRC the overwrite first delete the file.  We had a use case
where the FTP backend was some sort of mailbox which allow duplicate
files without really overwriting it.    It's an edge case, but the
purpose it to not delete the file before copying another with the same
name.
Makes sense ?

On Sat, Mar 1, 2008 at 2:56 PM, Gert Vanthienen (JIRA) <[EMAIL PROTECTED]> 
wrote:
>
>     [ 
> https://issues.apache.org/activemq/browse/SM-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41480#action_41480
>  ]
>
>  Gert Vanthienen commented on SM-1255:
>  -------------------------------------
>
>  Guillaume,
>
>
>  Wouldn't it be a better solution to reuse the already existing 'overwrite' 
> property to shortcut the if clause to avoid the check instead of adding 
> another property with (almost) the same meaning?
>
>  Something like
>  {code}
>  if (overwrite || client.listFiles(name).length == 0) {
>  ...
>  }
>
>
>  Gert
>
>  > Ability to not check duplicate files when uploading
>  > ---------------------------------------------------
>  >
>  >                 Key: SM-1255
>  >                 URL: https://issues.apache.org/activemq/browse/SM-1255
>  >             Project: ServiceMix
>  >          Issue Type: Improvement
>  >          Components: servicemix-ftp
>  >            Reporter: Guillaume Nodet
>  >            Assignee: Guillaume Nodet
>  >             Fix For: 3.2.2, 3.3
>  >
>  >
>
>
>  --
>  This message is automatically generated by JIRA.
>  -
>  You can reply to this email to add a comment to the issue online.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to