3 ms·
From my reading previously, no the currently OPFS implementations do not expose the files as files in directories the user would access. The File System Access
by samwillis 4y ago
From my reading previously, no the currently OPFS implementations do not expose the files as files in directories the user would access.
The File System Access API does give the webpage the ability access files on the users file system, with permission. However not at the block level, that is only enabled for the OPFS. In order to provide ACID compliance SQLite needs to be able to hold a lock to a file and write at the block level, which is only possible within the OPFS sandbox.
- rektide 4y agoMy use case is wanting a git implementation. I don't care about ACID, but I do care a lot about speed, and it absolutely is there 100% for the user's sake. So I feel shit-out-of-luck. Also, I'd rather use JS than wasm, and whatwg-fs/OPFS focused entirely on sync apis, to appease wasm folk who have cumbersome shims they didn't want to deal with. It's frustrating that the web community first build File System Access, but made a number of design choices compromising performance. Then AccessHandles/whatwg-fs, which unlocks performance, but severely limits it's usability to things users can't really interact with. And only release a sync implementation. I love the web platform, but this feels so unfortunate.