Add Sync

Like rmdir, I made this one a few months ago and have just now decided to upload it. It's relatively simple to implement in Go.