Merge folders on copy instead of replace on OSX
Published on March 9th, 2010 by DannyT. Filed under Flex, Mac/OS XWhen trying to copy a folder onto another of the the same name in OSX you will only get prompted to replace the items and not merge them. This is a real pain in the ass if you’re trying to merge folders and if the folder has several other nested folders.
I just came across this exact scenario trying to update the Flex SDK and copy in the Datavisualisation components (as instructed here) because it just replaced the SDK!
Anyway to resolve this copying from terminal can behave like you would expect:
cp -R -n /SoureFolder/* /TargetFolder/
so in the case of the datavis components:
cp -R -n /Users/[username]/Downloads/datavisualization_sdk3.5/*
/Applications/Adobe\ Flex\ Builder\ 3\ Plug-in/sdks/3.5.0/

jeff
March 19th, 2010 at 9:58 pm
Too funny, that is what i am trying to do. I cant believe that apple doesnt fix this. Glad I always copy directories before modifying stuff like this.