Page 1 of 2

Compare Directory by File Name ONLY

Posted: 2010-10-21, 23:08 UTC
by ectimo
Is there a way to compare 2 directories, but only the file names, not the contents, sizes and the dates?

Posted: 2010-10-22, 11:42 UTC
by sqa_wizard
2ectimo: welcome to the forum !

Just use the "Synchronize Dirs" function and set the options:

[ ] by content
[X] ignore date

Posted: 2010-10-23, 15:39 UTC
by MVV
Or just use Shift+F2 if you don't need to compare subfolders.

Posted: 2010-10-23, 18:57 UTC
by petermad
2sqa_wizard & 2MVV

Both of your methods will mark files with same name but different size as being different - that's apparantly not what
ectimo wants.

The only way I can think of, is to copy-and-paste the filenames of the two directories (with cm_CopyNamesToClip)
to two files, and then compare the two files with cm_IntCompareFilesByContent

Posted: 2010-10-23, 19:22 UTC
by Lefteous
try the sibling field of the misc content plugin.
http://www.ghisler.ch/board/viewtopic.php?p=136116#136116

Posted: 2010-10-24, 09:19 UTC
by Peter
Lefteous wrote:try the sibling field of the misc content plugin.
http://www.ghisler.ch/board/viewtopic.php?p=136116#136116
To compare folders? Please let us know how to configure it.

Peter

Posted: 2010-10-24, 16:22 UTC
by petermad
To compare folders?

Maybe by using Branch View with it ?

Posted: 2012-12-24, 08:47 UTC
by mrbeeye
Any chance that "compare two dirs only by file names" will be implemented?
I like more "Compare by Content" window interface than cm_comparedirswithsubdirs.

I use workaround:

Code: Select all

dir /b /a:-d > left(right)_panel.txt
and then Compare by Content those two files.

Posted: 2012-12-24, 09:39 UTC
by MVV
In Sync dialog there are buttons 'duplicates' and 'singles' that allow you to check if files with different names exist. So, leave only 'singles' pressed and you'll see files that exist on one side only.

Posted: 2012-12-25, 10:51 UTC
by mrbeeye
MVV wrote:In Sync dialog there are buttons 'duplicates' and 'singles' that allow you to check if files with different names exist. So, leave only 'singles' pressed and you'll see files that exist on one side only.
Yes I can use Synchronize Dirs but I do find two problems: window is modal and I cannot compare only filename part without extension.

Posted: 2017-02-12, 04:18 UTC
by kefir_sub
Hello,
It is an old thread but I still not have found a way in TC to "compare two dirs only by file names". That is especially relevant when I try to compare files with the copy in the cloud, e.g Google Drive (with cloudplugin). Same files have different time stamps and sizes.

Can that option be added to Synchronize Dirs?

Posted: 2017-02-12, 09:47 UTC
by MVV
When you enable "ignore date" option, TC suggests copy directions for "singles" (files that exist on one side only) and leaves "doubles" (files that exist on both sides) w/o copy direction (it is impossible to detect by size which copy is better), so you have to select a direction for such files yourself. You can also ignore and hide "doubles" by unclicking corresponding button if you don't want to sync them (they won't be synced automatically anyway though).

Re: Compare Directory by File Name ONLY

Posted: 2018-06-27, 17:35 UTC
by Inka
ectimo wrote:Is there a way to compare 2 directories, but only the file names, not the contents, sizes and the dates?
I miss this feature for years. In Sync Dialog, I get the names as expected for sync operation, but I need this as selection in one of TC's panes to do anything else.

Re: Compare Directory by File Name ONLY

Posted: 2018-06-27, 17:53 UTC
by Stefan2
Inka wrote:..., but I need this as selection in one of TC's panes to do anything else.
Depends on your workflow.

Currently you have to use tricks, scripts (there are a few in the forum) or a tool like 'Lst2Clip'

viewtopic.php?p=15433#15433
This will copy the selected file names to clipboard and modify them:
# Copying the file extension can now be omitted.






 

Posted: 2018-06-27, 19:45 UTC
by Hacker
Inka,
Shift-F2 doesn't help?

Roman