method ErrorUtils.permissionDeniedError
ErrorUtils.permissionDeniedError(
path: string,
operation: string,
): FileSystemError

Creates a FileSystemError for permission denied.

Parameters

path: string
  • The file path
operation: string
  • The operation that was denied

Return Type

FileSystemError

Usage

import { ErrorUtils } from ".";