Let's say I have a particular folder I want to move to a different drive. On that drive is a folder of the same name. Both folders have things inside them.

In Windows, when I move the folder, the things in the destination folder will not be affected, unless they have the same names as things in the folder that's being moved. After the move the destination folder will have everything that was in it before and everything that was in the source folder.

In OSX, moving folders is a dangerous thing. OSX will first erase the the destination folder before the move. So after the move, the destination folder will be an exact copy of the source folder, and everything that was in it before the move will be gone.

How can I move folders in OSX like in Windows? I don't want to lose what's in the destination directory.


Solution 1:

This is a new feature in the upcoming OS X Lion:

Merge folders

When you try to combine two folders with the same name, the Finder now offers to merge them into a single folder.

Solution 2:

Well you will never get this exact behaviour with a vanilla install of OS X Snow Leopard. It is a serious flaw with Finder that has been discussed for years at forums.macrumors.com.

Ways that you can accomplish this is by opening Terminal and using the following commands:

mv -n -v /current/location/myfolder /other/location/myfolder
cp -R -n ./source-folder/* ./destination-folder/

You could also use ditto. to get more information on these commands and their usage type the following:

$ man mv
$ man cp
$ man ditto

A better solution for what you are looking to accomplish would be a 3rd-party GUI application called Path Finder. Unfortunately it's not free but does give you a 30 day trial and you can at the very least try it and if it does the job it might be worth the $39.95.