Skip to content

checkPermission

checkPermission(stat, euid, egid, access): void

Defined in: packages/core/src/kernel/lib/permissions.ts:14

Check POSIX-style permission bits against effective uid/gid and requested access.

Stat

File metadata (mode, uid, gid fields consulted)

Uid

Effective user id of the calling process

Gid

Effective group id of the calling process

"r" | "w" | "x"

Requested access: ‘r’ (read), ‘w’ (write), or ‘x’ (execute)

void

FsError(‘EACCES’) if permission is denied