Skip to content

v0.14.0 The "You can reopen file picker files!" release

Pre-release
Pre-release

Choose a tag to compare

@evan-brass evan-brass released this 17 May 19:22
· 137 commits to dev since this release

The file picker VFS now stores opened file handles into an indexeddb so that you can re-open them later using a filename like filehandle:[handle number]. In order for you to know what the file handle is, the picker VFS calls showOpenFilePicker (or save picker) from inside the full_pathname function and puts filehandle:[handle number] into the filename struct. You can retrieve the filename for the databases in a connection using Conn.filename(db_name).

There's now also Conn.vfs(db_name) and Conn.file(db_name) to retrieve the javascript VFS or File implementations. This could maybe be helpful as an alternative to creating custom file_contol opcodes or custom pragmas.