sync

abstract fun sync(action: Action<in SyncSpec>): WorkResult(source)

Synchronizes the contents of a destination directory with some source directories and files. The given action is used to configure a SyncSpec, which is then used to synchronize the files.

Return

WorkResult that can be used to check if the sync did any work.

Since

6.0

Parameters

action

action Action to configure the SyncSpec.