api / org.gradle.api.file / FileCopyDetails / getDuplicatesStrategy

getDuplicatesStrategy

@Incubating abstract fun getDuplicatesStrategy(): DuplicatesStrategy

The strategy to use if there is already a file at this file's destination.

The value can be set with a case insensitive string of the enum value (e.g. 'exclude' for DuplicatesStrategy#EXCLUDE).

See Also
DuplicatesStrategy

Return
the strategy to use for this file.