contains

abstract fun contains(file: File): Boolean(source)

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

Return

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

Parameters

file

The file to check for.