Closed NovaAndrom3da closed 1 year ago
I have an example of this working on my project if you're interested.
https://github.com/DustinBrett/daedalOS/blob/main/contexts/fileSystem/FileSystemConfig.ts
{
fs: "MountableFileSystem",
options: {
"/": {
fs: "OverlayFS",
options: {
readable: {
fs: "HTTPRequest",
options: { index },
},
writable: {
fs: writeToMemory ? "InMemory" : "IndexedDB",
},
},
},
},
}
You can simply mount an overlayFS (overlaying an IndexedDB FS) to "/".
That's true you may not even need MountableFileSystem
depending on your use case. For me I use it because I mount other FS's after load such as IsoFS or ZipFS.
@Froggo8311 Has your question been answered?
In the MountableFileSystem documentation, it describes how it acts as a standard
InMemory
filesystem. Is there any way I could use it instead withIndexedDB
?