gradle
8.6

# sync

abstract fun sync(action: Action<out Any>): 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.