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.

setRead

abstract fun setRead(read: Boolean)(source)

Enables or disables read access to a file or directory for a certain class of users.

Read access grants the capability to view the contents of a file, or to list the contents of a directory.

Since

8.3