Skip to content

Commit

Permalink
Document options.mode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tomayac authored Feb 20, 2023
1 parent 212076b commit bfe4660
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ const blobs = await fileOpen(options);
```js
// Options are optional.
const options = {
// Set to `true` to recursively open files in all subdirectories,
// defaults to `false`.
// Set to `true` to recursively open files in all subdirectories, defaults to `false`.
recursive: true,
// Open the directory with `"read"` or `"readwrite"` permission, defaults to `"read"`.
mode?:
// Suggested directory in which the file picker opens. A well-known directory, or a file or directory handle.
startIn: 'downloads',
// By specifying an ID, the user agent can remember different directories for different IDs.
Expand Down

0 comments on commit bfe4660

Please sign in to comment.