Set file permission attributes

Apache 2.0

Set a file's read, write and executable permission attributes.

org.openrewrite.SetFilePermissions

Required

Permissions will be applied to matching files. This is a glob expression.

File read permission.

File write permission.

Files executable permission.

mod run . --recipe=org.openrewrite.SetFilePermissions \ -P fileMatcher='**/gradlew.bat' \ -P isReadable=false \ -P isWritable=false \ -P isExecutable=false

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.