Add folder syncing

Fixes #26 
Good point. I added a simple test case for it.