# sync

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

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

#### Return

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

#### Parameters

action

action Action to configure the CopySpec.