getSingleFile

abstract fun getSingleFile(): File(source)

Returns the content of this collection, asserting it contains exactly one file.

Return

The file.

Throws

when this collection does not contain exactly one file.