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.

permissions

abstract fun permissions(unixNumericOrSymbolic: String): ConfigurableFilePermissions(source)

Creates file/directory access permissions and initializes them via a Unix style permission string. For details see unix.

Doesn't have separate variants for files and directories, like other configuration methods, because the Unix style permission input completely overwrites the default values, so the distinction doesn't matter.

Since

8.3


abstract fun permissions(unixNumeric: Int): ConfigurableFilePermissions(source)

Creates file/directory access permissions and initializes them via a Unix style numeric permissions. For details see unix.

Doesn't have separate variants for files and directories, like other configuration methods, because the Unix style permission input completely overwrites the default values, so the distinction doesn't matter.

Since

8.3


Provider based version of permissions, to facilitate wiring into property chains.

Since

8.3