Skip to content

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

@etiennenoel

Description

@etiennenoel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions