Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,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.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[24,924 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 whomever posted them. This site is not responsible for what they say.
Use FileMerge to compare folder contents
Authored by: wgscott on Fri, Feb 17 2006 at 8:29AM PST
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 Fri, Feb 17 2006 at 8:49AM PST
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 Sat, Feb 18 2006 at 2:14AM PST
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 Sat, Feb 18 2006 at 8:06AM PST
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 Sun, Feb 19 2006 at 8:15AM PST
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 Sun, Feb 19 2006 at 10:42AM PST
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 Fri, Oct 3 2008 at 5:05AM PDT
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 | # ]