setRead

abstract fun setRead(read: Boolean)(source)

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

Read access grants the capability to view the contents of a file, or to list the contents of a directory.