Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / verifyFileMode

Function: verifyFileMode()

ts
function verifyFileMode(path, expected): Promise<{
  actual: number;
  ok: boolean;
}>;

Defined in: packages/security/src/hardening/file-modes.ts:98

Read the current POSIX mode and report whether it matches.

Parameters

ParameterType
pathstring
expectednumber

Returns

Promise<{ actual: number; ok: boolean; }>

Stable