Merge folders on copy instead of replace on OSX

Published on March 9th, 2010 by DannyT. Filed under Flex, Mac/OS X

When 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/

One Response to “Merge folders on copy instead of replace on OSX”

  1. 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. :)

    Reply

Leave a Reply

About DannyT

The blog: danny-t.co.uk - General geek talk focusing on Rich Internet Applications, Microsoft and Adobe technologies and the web in general. The business: Moov2.com - RIA development agency Dan Thomas has been an Internet geek since circa 1994. He has been running Moov2 since 2003 and prior to that worked as a Flash developer for one of europes largest E-learning providers.

Copyright © 2010 Danny-T.co.uk

CSS Template By RamblingSoul | WordPress Theme by Theme Lab and Best Hosting.