-
Notifications
You must be signed in to change notification settings - Fork 226
Open
Description
I have a filesystem initialized with
BrowserFS.configure({
fs: "MountableFileSystem",
options: {
"/templates": {
fs: "ZipFS",
options: {
// Wrap as Buffer object.
zipData: Buffer.from(zipData)
}
},
"/tmp": { fs: "InMemory" },
"/books": { fs: "IndexedDB", options: { storeName: "books" } },
"/etc": { fs: "IndexedDB", options: { storeName: "etc"} },
"/integration": { fs: "IndexedDB", options: { storeName: "integration" } }
}
}
I can read and write normally to /tmp and read from /templates but attempts to write using either writeFileSync or writeFile to any of the IndexedDB paths fail with error:
errno: 95, code: "ENOTSUP"
I'm building with rollup, and I didn't expected this to fail. Trying to use "LocalStorage" as a backend works but since I'm writing large files, I'd rather use IndexedDB.