Skip to content
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

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

Open
etiennenoel opened this issue Feb 20, 2024 · 0 comments

Comments

@etiennenoel
Copy link

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):

  • Applications
  • Apple Photos Library
  • Framework or SDK

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant