# setFileMode

abstract fun setFileMode(@Nullable mode: Integer): CopyProcessingSpec(source)

### Deprecated

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.

#### Return

this

#### Deprecated

Use filePermissions instead. This method is scheduled for removal in Gradle 9.0.

#### Parameters

mode

The file permissions.