Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DesertFox

macrumors member
Original poster
Nov 25, 2004
72
0
Hello,

Im running a CMS on localhost and it needs an update. I would like finder to copy folders with files so that it wont delete everything in the target folder and only copy over the new file. Basically here is what is happening right now:

Before copy:
Source folder contains new file 1, new file 2

Target folder contains file 1, file 2, file 3, file 4

After copy:
Target folder contains: new file 1, new file 2

So, as you can see...file 3 and file 4 are gone (this will break the web app).

I copy maybe hundredds of folder with new files so doing all this by hand wouldnt make much sense.

Is there anyone out there with a similar issue that has found a solution?

Thanks in advance.
 
L

littlejim

Guest
You'll probably be looking to use cp -R in the terminal.

Something like :

cp -R source/ target/

But please experiment before you take my word for it (and try typing 'man cp' before you proceed!).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.