-
Notifications
You must be signed in to change notification settings - Fork 66
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
FileSystemHandle.name
of the root directory
#437
Comments
The root directory of a Bucket File System is a special case. It is always the empty string; the only directory for which the For all other |
@a-sully Thanks for your reply.
These descriptions are a bit unclear to me, does it mean that different User-Agents may return different As far as I know if |
Ah I see. This is currently not well-specified. The picker methods say to create:
... which has a few problems:
All that being said, This looks very cool, by the way! :) |
The path "/" likely doesn't have a valid file name either. The If an invalid file name is a bug, then what should the name be? |
I agree that both That issue relates to paths for the Bucket File System, though. What's not specified - but is necessary to safely allow access to the local file system - is the additional restrictions the user agent may put on file names. I imagine these restrictions will be non-normative once they are added to the spec. For example, it looks like Chromium does not allow the colon character in file names, which explains why the drive letter is stripped....
...Good question! :) The least-bad option might be to carve out an exception for drive roots ('/', 'D:', etc) in the same way we have done for the Bucket File System root. Whether that's |
I think that if the user agent cannot generate a valid file name for the root directory, reusing the empty string of the bucket file system is better than using path separators. Because developers only need to additionally consider this one special case. However, probably generating a valid file name (e.g. |
The
FileSystemHandle.name
of the root directory may not be a valid file name (e.g. in bucket file system, it is an empty string), and developers may need to be aware of these special cases.Is there a universal rule for obtaining the
FileSystemHandle.name
based on the root directory?The following names are just my predictions and may differ from the current implementation of Chromium.
The text was updated successfully, but these errors were encountered: