gradle
8.6

# permissions

@Incubating
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.

@Incubating
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.

@Incubating
abstract fun permissions(permissions: Provider<String>): Provider<ConfigurableFilePermissions>(source)

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