api / org.gradle.api.file / CopyProcessingSpec / getDirMode

getDirMode

abstract fun getDirMode(): Int

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

Return
The directory permissions, or null if existing permissions should be preserved.