api / org.gradle.api.file / CopyProcessingSpec / setFileMode

setFileMode

abstract fun setFileMode(mode: Int): CopyProcessingSpec

Sets the Unix permissions to use for the target files. null means that existing permissions are preserved. It is dependent on the copy action implementation whether these permissions will actually be applied.

Parameters

mode - The file permissions.

Return
this