sync static method
Makes dest match source, copying only changed files (by size and
modification time) and deleting files that no longer exist, except the
preserved build caches.
Implementation
static Future<void> sync(Directory source, Directory dest) async {
await _syncDir(source, dest, '');
}