api / org.gradle.api.file / FileCollection / contains

contains

abstract fun contains(file: File): Boolean

Determines whether this collection contains the given file. Generally, this method is more efficient than calling getFiles().contains(file).

Parameters

file - The file to check for.

Return
true if this collection contains the given file, false otherwise.