Skip to content

Vault.on('unreadable') method

Vault › on(‘unreadable’)

Unofficial

Triggered when the desktop adapter cannot list a path for lack of permission (EACCES or EPERM).

Signature:

on(name: "unreadable", callback: (path: string) => void, ctx?: unknown): EventRef

Parameters:

ParameterTypeDescription
name"unreadable"Should be 'unreadable'.
callback(path: string) => voidThe callback function, called with the unreadable path.
ctx?unknownThe context passed as this to the callback function.

Returns: EventRef — The event reference.