Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use FileMerge to compare folder contents Apps
The Apple DevTools includes an application named FileMerge to diff the contents of textfiles: FileMerge. If you drag two folders on the application icon, a different dialog appears which shows a merged column view of both directories. You can set the checkmarks (on the right) to filter the view, and FileMerge also provides actions to remove or add files to the "left" and "right" folder. Additional information is available in the help.

On a sidenote: Roxio's Toast also has the ability to compare disks and folders (this functionality has been there for ages), and it provides a color-coded output, where you can easily see which files have been changed, removed, or added. I hope Apple will add something similar to FileMerge in the future.

[robg adds: I had no idea this functionality was buried in FileMerge. Quite useful if you do a lot of transferring of folders between machines...]
    •    
  • Currently 2.67 / 5
  You rated: 1 / 5 (9 votes cast)
 
[54,509 views]  

Use FileMerge to compare folder contents | 7 comments | Create New Account
Click here to return to the 'Use FileMerge to compare folder contents' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use FileMerge to compare folder contents
Authored by: wgscott on Feb 17, '06 08:29:18AM

opendiff is the command-line version of this, and you can feed it two directory paths or file paths and it will open the interface. The eye-candy quotient alone is phenomenal.



[ Reply to This | # ]
Use FileMerge to compare folder contents
Authored by: magir on Feb 17, '06 08:49:22AM

The link for Toast is currently broken, simply remove the www.macosxhints.com-part to get it working (I guess, Rob simply forgot the http when adding the link).



[ Reply to This | # ]
Use FileMerge to compare folder contents
Authored by: magir on Feb 18, '06 02:14:15AM

In addition to Toast the free TextWrangler is another alternative for comparing directory, at least when you're mainly interested in text files. The huge advantage to FileMerge is that it handles files with different line endings correctly (mac/unix/dos).



[ Reply to This | # ]
Use FileMerge to compare folder contents
Authored by: merlyn on Feb 18, '06 08:06:52AM

And my favorite univeral tool, GNU Emacs, has a nice diff mode that can be applied recursively interactively.



[ Reply to This | # ]
Use FileMerge to compare folder contents
Authored by: SimonDorfman.com on Feb 19, '06 08:15:55AM

Here's a useful applescript for FileMerging two selected files in the Finder:
http://www.red-sweater.com/AppleScript/CompareFiles.zip



[ Reply to This | # ]
Use FileMerge to compare folder contents
Authored by: kaakes on Feb 19, '06 10:42:34AM

I find kdiff3 quite useful to diff and merge files and directories full of files.
Can do 3-way merge as well. Not as flashy as Apple's merge tool, but more functional in my opinion.
http://kdiff3.sourceforge.net/



[ Reply to This | # ]
Use FileMerge to compare folder contents
Authored by: pasamio on Oct 03, '08 05:05:14AM

If you expand the "Compare Files" down it reveals two options: "Ancestor" and "Merge". The ancestor can be used for a three way merge with the two other change sets as the left or right. Merge is the directory for the results to go into.



[ Reply to This | # ]