Implement recursive get and put of a directory