macOS: How to Merge Folders

1 minute read
| Quick Tip

A little-known feature of macOS is the ability to merge two folders with the same name, as long as those folders contain different files. So let’s say, for example, that I’ve got one item—creatively dubbed “Test Folder”—sitting on my Desktop.

Folder on Mac Desktop ready to merge with another folder

And in my Dropbox, I have another folder with the exact same name.

Folder in Dropbox ready to merge with folder on Mac desktop

Of course, if I just drag the Dropbox “Test Folder” to my Desktop, macOS will ask me if I’d like to replace the one there.

"Are You Sure" Mac Finder Dialog asking if you want to replace the folder with the one you're moving

Here’s the “merge” part, though—if I instead hold down the Option key as I drag the first folder to the location of the second folder (not on top of the second folder), I’ll get a new choice!

Merge Option in Mac Finder Dialog for combining two folders

If I pick “Merge” from that dialog box, macOS will do just that—it’ll combine the contents of the two folders. My Desktop version of “Test Folder” originally contained just a Pages file, but after doing this, it now has the two items from the Dropbox folder, as well.

Combined Result of Merge Command for folders on the Mac

Note that copies of those files still live in my Dropbox; this doesn’t delete the originals. That said, “Merge” doesn’t provide an “Undo” option, so…yeah…if you’re concerned about your files, please make sure your backups are solid before you use this. Just in case.

Now, while this feature is very cool, it’s also incredibly persnickety in my experience. As Apple notes in their support documentation:

The Merge option appears only if one of the folders contains items that are not in the other folder. If the folders contain different versions of identically named files, the only options are Stop or Replace.

So as you can see, you might get this dialog box instead of the “Merge” one pictured above if you’re trying to use this feature with folders containing different versions of the same files:

No Merge Option in Mac Finder Dialog if files with the same name are in both folders

I mean, I guess this is a good safety net to prevent you from overwriting important versions of things! But at least there is a way to clean up some of the identical folders on your Mac. I know I personally have around twelve different folders labeled “2016,” for example, in various places on my computer. If Spotlight didn’t make it so easy to find things without having to be all neat about it, I’d probably be panicking right now.

2
Leave a Reply

Please Login to comment
2 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
vpndevLee Dronick Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
vpndev
Member
vpndev

I wonder what happens with nested folders? Do they get merged too?

Lee Dronick
Member
Lee Dronick

Good tip! Hopefully Apple can make it work when there is a copy in each folder; they could append “copy” to the file name of one of them.