sync static method

Future<void> sync(
  1. Directory source,
  2. Directory dest, {
  3. bool keep(
    1. String rel
    )?,
})

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 and files keep accepts.

Implementation

static Future<void> sync(Directory source, Directory dest,
    {bool Function(String rel)? keep}) async {
  await _syncDir(source, dest, '', keep);
}