setWrite

abstract fun setWrite(write: Boolean)(source)

Enables or disables write access to a file or directory for a certain class of users.

Write access grants the capability to modify or remove the contents of a file, or to add or remove files to/from a directory.