Lion allows you to merge the contents of two folders as long as you choose to copy those files, and not move them. You can also place files of the same name in the same folder as long as you let the Finder automatically rename the new files.
Hi, this is Gary with MacMost Now. On todays episode let me show you how to merge folders in Lion.
So, Lion allows you to merge the contents of two folders. Also does something a little different if you try to copy a file to a location where a file with that name already exists. Lets take a look.
So here I have two different locations on my hard drive – folder one and folder two. In each one is a folder called ‘Text Files.’ I look in here and I’ve got three test files – one, two and three – and I have three tests files here as well and they have different names – four, five and six. So what happens if I try to copy this folder into this location? They both have the same name so they both can’t exist there. Well, if I try to do a straight copy I suddenly get the option whether I want to replace that or just not do anything, which is the same as its always been. So, you don’t want to delete whats there, you want to actually merge the two together. So the key is to hold the ‘option key’ then drag it there to make a copy. Once I do that I get this dialogue box which allows me to either stop or replace the folder or merge them together. If I select merge I still have one folder and if I look inside it I can see all six files are there now.
Now the same will happen if I try to copy and paste. So if I select this, command + C, go over here and command + V, I will get the same merge option as when I option dragged. Now this is basically the same as if I would go in to here, select all the files and then drag them in. I get the same results. Now what happens if I go to this other location, I have another folder here, this one also has some text files in it. This one has three that have the same name as the ones here. So, I have three files with the same name so what happens if I were to try to copy these into here? I get the option to replace the files of course, not do anything or keep both files and I can apply that to all. If I keep both files – I look in here I can see I’ve got my originals that were in the folder and I also have the three new ones and it appends the word ‘copy’ to each of those. I now have all six of the files there it’s just the new ones have been renamed so that they can coexist with the originals. Now notice one idiosyncrasy here. I have this folder here and it’s got the same names as what’s in there and I try to do the merge as before – so I just put it in the same location, hold down the option key and I don’t get the merge option there because it can’t merge those folders without renaming files which is kind of two steps. So it just doesn’t actually do it at all. So you have to actually dig into here, select all of these and move them into this folder.
So you still have the danger of accidentally deleting a whole folder of files with another folder if you drag and drop it without holding in option key. One of the habits I’ve gotten into over the years if I’m going to do something like that – like say I copy some files from my Mac Pro to my Macbook Air, I work on them on the Mac Air and I want to copy them back to the Mac Pro – I could just replace the folder full of files on the Mac Pro but that deletes them. It doesn’t put them in the trash, they’re gone. So one of the habits I’ve gotten in to is simply to throw away the original folder on the Mac Pro so that it’s in the trash then copy the files fromt he other Mac on to the Mac Pro, it replaces them but I still have the old versions now in the trash incase a few seconds later I realize I’ve made a mistake.
I hope you found this all useful. Until next time, this is Gary with MacMost Now.