Implements recursive file/dir copy handling