Closed matbee-eth closed 11 months ago
This project only supports fs created using indexedDB.
I took a look last night and noticed that, so I'm working on an OPFS fork, thanks!
You don't need to fork it, you will need to delete everything or implement a custom backend which is a library that works on its own together with lightning-fs.
Incorrect wording, I meant an OPFS implementation. All good!
I understand. Forking will give you no good. You will either implement everything from zero or create a custom OPFS backend, but custom backend is almost like implementing everything from scratch. You need to implement all methods like in NodeJS fs module. I never understood what is the purpose of custom backend. For me it looks like whole new implementation. Maybe without fs.promises
interface that will be created automatically for you.
Yep got it working by simply providing {promises:customopfs} to iso-git! Thanks so much! I'll post a link at some point soon, some minor complexity involved to get it working in webworkers but I solved it rather well imo. Just have to figure out how to sort it out as an NPM module.
@matbee-eth please may we take a look ?
@matbee-eth please may we take a look ?
Yeah I can post it in its raw state and you can take a look
Does this project support OPFS or does it need to be added?