WICG / file-system-access

Expose the file system on the user’s device, so Web apps can interoperate with the user’s native applications.
https://wicg.github.io/file-system-access/
Other
654 stars 65 forks source link

Feature Request: [MacOS] Make Packages Selectable via openDirectoryPicker #440

Open etiennenoel opened 6 months ago

etiennenoel commented 6 months ago

On MacOS, there is a type of folder that is called a “package” that is usually treated like a file from the user’s perspective. Examples of such packages are (Not limited to):

At the moment, when calling openDirectoryPicker, a “package” cannot be selected. Making it impossible for users to select photos or files under an application. I believe that it should be selectable.

Comparing existing behaviors

Since openDirectoryPicker is not implemented in Safari and Firefox, to compare the existing behavior, we have to look at Directory Picker from the File and Directory Entries API,

Here’s how each browser behaves for this API:

Safari Package selectable, not browsable

Firefox & Chromium Package not selectable.

Proposal

For the FileSystemAccess API, I believe that Safari’s behavior in the File and Directory Entries API should be the standard one. This means that when calling openDirectoryPicker a package should be selectable but not browsable.