For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

dir

abstract fun dir(path: String): Provider<Directory>(source)

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

Return

The directory.

Since

4.3

Parameters

path

The path. Can be absolute.


abstract fun dir(path: Provider<out CharSequence>): Provider<Directory>(source)

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

Return

The directory.

Since

4.3

Parameters

path

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