Every now and then, a developer might find themselves needing to merge two folders on their local file system – like when updating several modules for EE without wanting to traipse up and down the file tree. Updating your local version of a site with the latest content assets from a production server. This should be a simple operation, but it’s one of (the few) things that’s just oddly difficult to achieve without going to some lengths on OS X. Here’s one way to do it if you’ve got access to Transmit (or another halfway decent sftp client). Step 0 – If you don’t already keep Remote Login enabled under sharing, that’ll need to be on – and if you don’t have a strong user account password stop reading and go set one (no really, do it – don’t even get me started). Step 1 – In your sftp client (I’m using Transmit 4 from Panic in this example), connect to Localhost (or 127.0.0.1) via sftp using your account’s login and password as credentials).

Step 1

Step 2 – Navigate to the folder that you’ll want merge into (your destination) Step 3 – Move your source folder into the SFTP window

Step 3a

Step 3.5 – …and when asked choose ‘Replace’ or ‘Merge’ depending on the situation. The end result should be that your destination folder now has all it’s original files (optionally overwritten from the source folder—just choose not to replace files specifically) along with all the files that existed only in the source folder before the merge.

Step 3b
Paul Weinert
Author

Paul Weinert is our founder, managing principal and spirit animal. He’s one of those odd people you meet that was born in Portland, grew up here and still lives here for some reason. If you had two words to describe Paul after meeting him, we’d bet you’d use “charmingly quirky”.

Paul started GRAYBOX in February 2009, and for the first four years, GRAYBOX had a blend of a contract staffing firm and a traditional agency. GRAYBOX then hired our first employees in 2012 and has been growing ever since. Professionally, Paul has a background in internet business consulting, working especially with mid-market ecommerce, healthcare, and tech companies. He worked as a user experience designer, web developer and internet marketer. Nowadays, Paul serves as our company visionary, team mentor and head of executive leadership — Paul is extremely proud of the entire team and the company. He’s constantly humbled by the team’s awesomeness and the caring community that’s sprung up from his initial ideas.

Beyond GRAYBOX, Paul is married, has two young boys and lives in NE Portland. He’s also an active foster parent, mentors other local entrepreneurs, and volunteers on local non-profit boards. Businesswise, aside from GRAYBOX, Paul has started a few other businesses and is an active investor in the local startup scene.

For the sheer joy of it, let’s play 2 truths and a lie:

  1. Paul firmly believes that any activity would be better if on a boat.
  2. Other than this whole Internet thing, Paul has basically no other skills or expertise in anything.
  3. Paul is rare unicorn, actually born and raised in Portland.