Skip to main content

sync_tree

Function sync_tree 

Source
pub fn sync_tree(
    platform: &dyn Platform,
    source: &Path,
    destination: &Path,
    options: SyncOptions<'_>,
    interrupt: &Interrupt,
) -> Result<SyncStats, MigrateError>
Expand description

What: Run one pass from source to destination (both existing directories). Why: See the module description; the work stack replaces recursion.

In TS you’d write (pseudocode):

const stats = await syncTree({ platform, source, destination, options, interrupt });