ProcessPermission

sealed external interface ProcessPermission(source)

Functions

Link copied to clipboard
abstract fun has(scope: String, reference: String = definedExternally): Boolean

Verifies that the process is able to access the given scope and reference. If no reference is provided, a global scope is assumed, for instance, process.permission.has('fs.read') will check if the process has ALL file system read permissions.