# file

abstract fun file(path: String): Provider<RegularFile>(source)

Returns a RegularFile whose value is the given path resolved relative to the value of this directory.

#### Return

The file.

#### Since

4.3

#### Parameters

path

The path. Can be absolute.

abstract fun file(path: Provider<out CharSequence>): Provider<RegularFile>(source)

Returns a RegularFile whose value is the given path resolved relative to the value of this directory.

#### Return

The file.

#### Since

4.3

#### Parameters

path

The path. Can have a value that is an absolute path.