The depend selector is asymetric between source and target.
The different selector is not.
For instance :
- the different selector returns true if the source exist and the target does not, but also
if the source does not exist and the target does
- the different selector, if it compares timestamps, returns true when timestamps differ,
regardless of whether the source file is more recent than the target or the contrary.
On top of that the different selector can compare filesizes, which the depend selector does not do,
but is not a time expensive operation.
What I want to achieve with this ignorecontents attribute on different is the ability to select quickly
files which need to be synched, without comparing contents.
Cheers,
Antoine
Stefan Bodewig wrote:
On Fri, 02 Jul 2004, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote:
Hello, I would like to add a new attribute to DifferentSelector :
ignorecontents. This attribute would default to false (current
behavior). If you set it to true, then <different/> would compare
files only based on timestamps and file size, skipping the binary
compare.
How would that be different from the <depend> selector?
Stefan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]