Page 1 of 2

cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-01-19, 10:10 UTC
by KozakMak
cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2 = ignore timestamp

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-14, 08:41 UTC
by KozakMak
up

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-14, 14:07 UTC
by petermad
support++

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-14, 15:40 UTC
by ghisler(Author)
What would be the difference to cm_CompareDirs 1 ?

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-14, 17:25 UTC
by petermad
Probably nothing - the description:
Help wrote:1: Only selects files which do not exist on the other side
If I have two files with the same name and size but different timestamps, then cm_CompareDirs 1 will not mark any of them

Maybe KozakMak wants such two files to be both marked instead with parameter 2.

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-15, 06:39 UTC
by KozakMak
ghisler(Author) wrote: 2024-10-14, 15:40 UTC What would be the difference to cm_CompareDirs 1 ?
1 - ignored size !

I suggest param 2 - its like default behavior, but ONLY ignore timestamp

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-15, 11:17 UTC
by petermad
Currently I see this behaviour:

cm_CompareDirs:
Files with same size but different timestamp -> the newest file is marked
Files with different size but same timestamp -> both files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked

cm_CompareDirs 1:
Files with same size but different timestamp -> none of the files are marked
Files with different size but same timestamp -> none of the files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked

2KozakMak what is it that you want cm_CompareDirs 2 to do??

Is it this - cm_CompareDirs 2:
Files with same size but different timestamp -> none of the files are marked
Files with different size but same timestamp -> both files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-15, 11:58 UTC
by KozakMak
petermad wrote: 2024-10-15, 11:17 UTC Files with different size but same timestamp -> both files are marked
Files with different size but I DON'T CARE ABOUT TIMESTAMP -> both files are marked 8)

You are absolutely right! That's cm_CompareDirs 2 i want :roll:

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-16, 08:12 UTC
by ghisler(Author)
Thanks for the explanation, I will add this.

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-16, 14:17 UTC
by KozakMak
16.10.24 Added: cm_CompareDirs, cm_CompareDirsWithSubdirs: New parameter 2 to select files with different sizes plus files which do not exist on the other side (32/64)
...and what about Timestamps ?

PS. in TOTALCMD.CHM param 2 not specified

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-17, 01:37 UTC
by petermad
I can confirm that cm_CompareDirs 2 works as descibed here:
petermad wrote:Files with same size but different timestamp -> none of the files are marked
Files with different size but same timestamp -> both files are marked
Files with same size and date -> none of the files are marked
File only exists on one side -> the file is marked

I can also confirm that parameter 2 is not documented in the Help

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-17, 04:25 UTC
by KozakMak
petermad wrote: 2024-10-17, 01:37 UTC I can confirm that cm_CompareDirs 2 works as descibed here:
I confirm too!
but changelog doesn't mention it

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-17, 07:02 UTC
by ghisler(Author)
2KozakMak
You quoted yourself where the changelog (history.txt) mentions it. Or do you mean the what's new section? I wonder whether I should mention such a small change there. It's just 2(!) lines of code...

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-17, 10:11 UTC
by sa16
petermad wrote:I can confirm that cm_CompareDirs 2 works as descibed here:
What to do if:
Files with different size and different timestamp?
The same as when cm_CompareDirs without a parameter?

Re: cm_CompareDirs, cm_CompareDirsWithSubdirs: parameter 2

Posted: 2024-10-17, 12:48 UTC
by petermad
What to do if:
Files with different size and different timestamp?
Currently for files like that, the one with the newest filestamp is marked.
But I think it would be better if they were both marked just as Files with different size but same timestamp are