File system, based on the spec reference implementation
```ts const [fileHandle] = await showOpenFilePicker({ _preferPolyfill: false, multiple: false, excludeAcceptAllOption: true, // @ts-expect-error https://github.com/jimmywarting/native-file-system-adapter/issues/57 types: [ { description: 'JSON file', accept: { 'application/json': ['.json'], }, }, ], }); const blob = new Blob(); const reader = await fileHandle.createWritable(); ``` Throw here ``` export class FileHandle { constructor (name = '', file = new File([], name), writable = true) { this._file = file this.name = name this.kind = 'file' this._deleted = false this.writable = writable this.readable = true } async getFile () { if (this._deleted) throw new DOMException(...GONE) return this._file } async createWritable (opts) { if (!this.writable) throw new DOMException(...DISALLOWED) // ↑ ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by linonetwo and has received 2 comments.