api / org.gradle.api.file / FileCollection / getAsPath

getAsPath

abstract fun getAsPath(): String

Returns the contents of this collection as a platform-specific path. This can be used, for example, in an Ant <path> element.

Return
The path. Returns an empty string if this collection is empty.