api / org.gradle.api.file / FileCollection / getAsFileTree

getAsFileTree

abstract fun getAsFileTree(): FileTree

Converts this collection to a FileTree. Generally, for each file in this collection, the resulting file tree will contain the source file at the root of the tree. For each directory in this collection, the resulting file tree will contain all the files under the source directory.

Return
this collection as a FileTree. Never returns null.