• Asynchronously tests a user's permissions for the file specified by path.

    Parameters

    • path: PathLike

      A path to a file or directory. If a URL is provided, it must use the file: protocol. URL support is experimental.

    • Optional mode: number

    Returns Promise<void>