Skip to content

Commit

Permalink
update FileSystemFileHandle (mdn#29811)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Nov 7, 2023
1 parent e089abb commit 2315659
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ A {{jsxref('Promise')}} which resolves to a {{domxref('FileSystemSyncAccessHandl

### Exceptions

- `NotAllowedError` {{domxref("DOMException")}}
- : Thrown if the {{domxref('PermissionStatus.state')}} for the handle is not `granted` in `readwrite` mode.
- `InvalidStateError` {{domxref("DOMException")}}
- : Thrown if the {{domxref('FileSystemSyncAccessHandle')}} object does not represent a file in the [origin private file system](/en-US/docs/Web/API/File_System_API/Origin_private_file_system).
- `NotFoundError` {{domxref("DOMException")}}
- : Thrown if current entry is not found.
- `NoModificationAllowedError` {{domxref("DOMException")}}
- : Thrown if the browser is not able to acquire a lock on the file associated with the file handle.
- `NotAllowedError` {{domxref("DOMException")}}
- : Thrown if the permission has not been granted at the API level (i.e. {{domxref("FileSystemHandle.requestPermission")}} is required).

## Examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ A {{jsxref('Promise')}} which resolves to a {{domxref('FileSystemWritableFileStr

- `NotAllowedError` {{domxref("DOMException")}}
- : Thrown if the {{domxref('PermissionStatus.state')}} for the handle is not `'granted'` in `readwrite` mode.
- `NotFoundError` {{domxref("DOMException")}}
- : Thrown if current entry is not found.
- `NoModificationAllowedError` {{domxref("DOMException")}}
- : Thrown if the browser is not able to acquire a lock on the file associated with the file handle.
- `AbortError` {{domxref("DOMException")}}
- : Thrown if implementation-defined malware scans and safe-browsing checks fails.

## Examples

Expand Down
5 changes: 3 additions & 2 deletions files/en-us/web/api/filesystemfilehandle/getfile/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ A {{jsxref('Promise')}} which resolves to a {{domxref('File')}} object.
### Exceptions

- `NotAllowedError` {{domxref("DOMException")}}
- : Thrown if the {{domxref('PermissionStatus.state')}} is not `granted` in
read mode.
- : Thrown if the {{domxref('PermissionStatus.state')}} is not `granted` in `read` mode.
- `NotFoundError` {{domxref("DOMException")}}
- : Thrown if current entry is not found.

## Examples

Expand Down

0 comments on commit 2315659

Please sign in to comment.