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.
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.
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.