Function verifyPermission

  • Verify the user has granted permission to read or write to the file, if permission hasn't been granted, request permission.


    • fileHandle: FileSystemFileHandle

      File handle to check.

    • withWrite: boolean

      True if write permission should be checked.

    Returns Promise<boolean>

    True if the user has granted read/write permission.

Generated using TypeDoc