file

abstract fun file(file: Provider<File>): Provider<RegularFile>(source)

Creates a RegularFile provider whose location is calculated from the given Provider.

File system locations based on relative paths will be resolved against this layout's reference location, as defined by getProjectDirectory.