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 and files keep accepts.
Implementation
static Future<void> sync(Directory source, Directory dest,
{bool Function(String rel)? keep}) async {
await _syncDir(source, dest, '', keep);
}