Function: assertFileReadAllowed()
function assertFileReadAllowed(filePath: unknown): string;
Defined in: main/security/fileAccessPolicy.ts:103
Assert that a requested file read is allowed.
Parametersβ
filePathβ
unknown
Returnsβ
string
Throwsβ
Error when the path is invalid, not a FIT file, or not approved.