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

Update a reference to FileSystemHandle/entry #409

Merged
merged 2 commits into from
Apr 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ permission-related algorithms and types are defined as follows:
1. If |read state| is not {{PermissionState/"granted"}}, this descriptor's [=permission state=]
must be equal to |read state|.

Issue(whatwg/fs#101): Make these checks no longer associated with an entry.

: [=permission request algorithm=]
:: <div algorithm="permission request algorithm">
Given a {{FileSystemPermissionDescriptor}} |desc| and a {{PermissionStatus}} |status|,
Expand Down Expand Up @@ -592,15 +594,14 @@ run the following steps:

1. Let |origin| be |environment|'s [=environment settings object/origin=].

1. If |startIn| is a {{FileSystemHandle}}:
1. Let |entry| be |startIn|'s [=FileSystemHandle/entry=].
1. If |entry| does not represent a [=/file system entry=] in an [=origin private file system=]:
1. If |entry| is a [=file entry=], and a path on the local file system
corresponding to the parent directory of |entry| can be determined,
then return that path.
1. If |entry| is a [=directory entry=], and a path on the local file system
corresponding to |entry| can be determined,
then return that path.
1. If |startIn| is a {{FileSystemHandle}} and is not
[=FileSystemHandle/in the origin private file system=]:
1. Let |entry| be the result of [=locating an entry=] given
|startIn|'s [=FileSystemHandle/locator=].
1. If |entry| is a [=file entry=], return the path of
|entry|'s [=file system entry/parent=] in the local file system.
1. If |entry| is a [=directory entry=], return
|entry|'s path in the local file system.

1. If |id| is non-empty:
1. If [=recently picked directory map=][|origin|] [=map/exists=]:
Expand Down