3 ms·
Why does the implementation detail around origin file systems affect the motivating use case from the announcement? Web apps can now create their own file syst
by ec109685 5y ago
Why does the implementation detail around origin file systems affect the motivating use case from the announcement?
Web apps can now create their own file systems and treat objects as files (and it seems directly point to such files) with this api. That wasn’t easily possible before.
- xg15 5y agoThe type of files accessed is radically different: The local FS acesses already existing files that users typically manage by hand, whereas the origin-private FS accesses files that the webapp created itself and will typically manage internally. In Unix terms, the former gives you access to parts of /home, the latter to parts of /var or /tmp. I'm also not sure if calling them different "implementations" (as I did in the GP) is really the best way to put it. Both filesystem objects implement the same interface, but you call different APIs to obtain the objects in the first place and would use them in different contexts. My issue was that the motivating example was about rebuilding the "open"/"save as" functionality from desktop apps, which the local FS API was tailor-made for - but the announcement is about the origin-private FS API, which has a completely different purpose.