-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration to WHATWG (of OPFS and AccessHandle) #342
Comments
A preview of the parts being split out can now be found at https://whatpr.org/fs/1.html. |
Not sure if this is the right place, but based on a thread on Twitter, I'm going to post some thoughts here. The web already has a number of heterogenous APIs that, for better or worse, are called "File System" APIs. Most of the APIs listed below have essentially nothing to do with each other. https://developer.mozilla.org/en-US/docs/Web/API/LocalFileSystem It doesn't help that there's also a proposed "File Handling API," which is ambiguously named because many of these other APIs allow you to do operations on files ("handling the files") and some of them include objects that include the word "Handle." WICG/file-handling#70 I think we need names that can do the following work:
I suggest distinguishing between "user files" and "virtual files," where the origin-private file system uses virtual files and
|
I prefer the current proposed name, as it will not require the spec to be renamed if the other parts of (what is currently called) File System Access get two interested implementers and thus also migrate into this spec. |
Yeah, we cannot revisit the name of the WHATWG File System at this point. Renaming File System Access to make it clearer it's about exposing the user's local file system seems reasonable however. |
Does it make sense to be formally called "the WHATWG File System API"? Or to also give it an informal code name like "Houdini," so caniuse etc. could refer to the "Cynosure File System API"? |
All WHATWG standards have relatively simple names (see https://spec.whatwg.org/) so File System (sans API) makes sense given its scope. Externally I would expect it to be called the File System Standard or File System Living Standard (equivalent to HTML Standard), perhaps prefixed with WHATWG depending on the context. The way I see it is that "file system" is a hierarchical data structure consisting of directories and files (and that's what the standard (will) define(s)). Similar to how "file" on the web is also an abstract data structure, that can have a physical backing depending on the entry point used. |
What about an informal code name, like Houdini? How are we supposed to talk about the difference between "File System" and https://developer.mozilla.org/en-US/docs/Web/API/FileSystem? Today https://caniuse.com/?search=filesystem shows both https://caniuse.com/filesystem and https://caniuse.com/mdn-api_filesystem How is anybody supposed to understand the difference? How do I even ask the question of which browsers support "File System"? |
Don't you already know why and how corporations are eager to own a discourse? |
I don't know about the plausibility of remote file system access as a future extension to this API, but just I'm just mentioning that idea here in case it is relevant to any potential renaming. Personally I think File System Access API is fine. It has already been renamed once, and I think that was already confusing enough for developers, even though it was quite early in the process. That said, I don't have very strong opinions here. |
Is this still the integration plan? It seems like work is happening in #344 to add access handles, but I thought access handles were going to be added to https://fs.spec.whatwg.org/, not this repository. I.e. I think the ideal sequence would be:
but it sounds like the current plan is
|
@domenic given the reply from @fivedots to #344 (comment) I was expecting that it's still the plan. Your review made me wonder if I'd missed something though. |
As discussed in https://docs.google.com/document/d/1RBK5pshKiKWa0drPEPrYwsAmZUELO_23hGM2iJTFiJA/edit we'll migrate part of this specification to the WHATWG, contingent upon WHATWG SG approval.
Checklist:
I suggest that AccessHandle is integrated after this transition.
cc @domenic @foolip @youennf (sorry, I don't have the handles of all who partook)
The text was updated successfully, but these errors were encountered: