sync static method

Future<void> sync(
  1. Directory source,
  2. Directory dest
)

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, '');
}