Skip to content

TODO: File System Access API #10

Open
@H-Plus-Time

Description

@H-Plus-Time

Parts of this are relatively easy to work with if you're using one of the Wasm*Store instances, for instance:

const stream = await instance.get(fooUrl);
const fsHandle = await window.showSaveFilePicker();
const writableStream = await fsHandle.createWritable();
await stream.pipeTo(writableStream);

The parts that aren't are:

  • fs.get, of any kind (full file streams, ranges, etc)
  • byte ranged fs.write
  • fs.list
  • fs.delete
  • fs.copy

It's likely easier to start with the OPFS first, then account for the required user interaction bits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions